From: yh106.jung Date: Tue, 12 Sep 2017 04:49:21 +0000 (+0900) Subject: Enable node integration on Chrome extension's background page X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=663f2633971dffdc6733e5296feedcd1ed3e18bd;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Enable node integration on Chrome extension's background page Change-Id: I3dfdb3376f99092803fb8820f92056d21aa295b4 Signed-off-by: yh106.jung --- diff --git a/lib/renderer/init.js b/lib/renderer/init.js index 9b7ea9dab..2f00ff5ef 100644 --- a/lib/renderer/init.js +++ b/lib/renderer/init.js @@ -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'