parent
2de80571d8
commit
dba2fa31b6
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ window.addEventListener 'unload', ->
|
||||||
# Set the __filename to the path of html file if it's file: or asar: protocol.
|
# Set the __filename to the path of html file if it's file: or asar: protocol.
|
||||||
if window.location.protocol in ['file:', 'asar:']
|
if window.location.protocol in ['file:', 'asar:']
|
||||||
pathname =
|
pathname =
|
||||||
if process.platform is 'win32'
|
if process.platform is 'win32' and window.location.pathname[0] is '/'
|
||||||
window.location.pathname.substr 1
|
window.location.pathname.substr 1
|
||||||
else
|
else
|
||||||
window.location.pathname
|
window.location.pathname
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue