Cleanup usaages of asar: protocol

This commit is contained in:
Cheng Zhao 2015-01-31 18:50:26 -08:00
parent 37d278de34
commit 23b5c1f782
3 changed files with 4 additions and 4 deletions

View file

@ -60,8 +60,8 @@ if nodeIntegration in ['true', 'all', 'except-iframe', 'manual-enable-iframe']
global.require = require
global.module = module
# Set the __filename to the path of html file if it's file: or asar: protocol.
if window.location.protocol in ['file:', 'asar:']
# Set the __filename to the path of html file if it is file: protocol.
if window.location.protocol is 'file:'
pathname =
if process.platform is 'win32' and window.location.pathname[0] is '/'
window.location.pathname.substr 1