Cleanup usaages of asar: protocol
This commit is contained in:
parent
37d278de34
commit
23b5c1f782
3 changed files with 4 additions and 4 deletions
|
@ -179,7 +179,7 @@ class PreloadAttribute extends WebViewAttribute
|
|||
return '' unless @webViewImpl.webviewNode.hasAttribute @name
|
||||
preload = resolveUrl @webViewImpl.webviewNode.getAttribute(@name)
|
||||
protocol = preload.substr 0, 5
|
||||
unless protocol in ['file:', 'asar:']
|
||||
unless protocol is 'file:'
|
||||
console.error webViewConstants.ERROR_MSG_INVALID_PRELOAD_ATTRIBUTE
|
||||
preload = ''
|
||||
preload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue