mirror of
https://github.com/electron/electron.git
synced 2026-02-19 03:14:51 -05:00
@@ -31,7 +31,7 @@ window.addEventListener 'unload', ->
|
||||
# Set the __filename to the path of html file if it's file: or asar: protocol.
|
||||
if window.location.protocol in ['file:', 'asar:']
|
||||
pathname =
|
||||
if process.platform is 'win32'
|
||||
if process.platform is 'win32' and window.location.pathname[0] is '/'
|
||||
window.location.pathname.substr 1
|
||||
else
|
||||
window.location.pathname
|
||||
|
||||
Reference in New Issue
Block a user