Fix displaying context menu for devtools

This commit is contained in:
Cheng Zhao 2014-11-16 22:34:29 +08:00
parent af72842728
commit 651dabf47e
2 changed files with 10 additions and 6 deletions

View file

@ -37,9 +37,11 @@ for arg in process.argv
if location.protocol is 'chrome-devtools:'
# Override some inspector APIs.
require path.join(__dirname, 'inspector')
nodeIntegration = 'true'
else if location.protocol is 'chrome-extension:'
# Add implementations of chrome API.
require path.join(__dirname, 'chrome-api')
nodeIntegration = 'true'
else
# Override default web functions.
require path.join(__dirname, 'override')