Enable node integration on Chrome extension's background page 79/149279/1
authoryh106.jung <yh106.jung@samsung.com>
Tue, 12 Sep 2017 04:49:21 +0000 (13:49 +0900)
committeryh106.jung <yh106.jung@samsung.com>
Tue, 12 Sep 2017 04:49:56 +0000 (13:49 +0900)
Change-Id: I3dfdb3376f99092803fb8820f92056d21aa295b4
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
lib/renderer/init.js

index 9b7ea9d..2f00ff5 100644 (file)
@@ -82,7 +82,7 @@ if (window.location.protocol === 'chrome-devtools:') {
 } else if (window.location.protocol === 'chrome-extension:') {
   // Add implementations of chrome API.
   require('./chrome-api').injectTo(window.location.hostname, isBackgroundPage, window)
-  nodeIntegration = 'false'
+  nodeIntegration = 'true' /* 'false' */
 } else if (window.location.protocol === 'chrome:') {
   // Disable node integration for chrome UI scheme.
   nodeIntegration = 'false'