Use global ZeroNet-Internal url to access Websocket

This commit is contained in:
shortcutme 2019-04-15 15:42:24 +02:00
parent 879b522914
commit 8429ad7db7
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -654,7 +654,7 @@ if origin.indexOf("https:") == 0
else else
proto = { ws: 'ws', http: 'http' } proto = { ws: 'ws', http: 'http' }
ws_url = proto.ws + ":" + origin.replace(proto.http+":", "") + "/Websocket?wrapper_key=" + window.wrapper_key ws_url = proto.ws + ":" + origin.replace(proto.http+":", "") + "/ZeroNet-Internal/Websocket?wrapper_key=" + window.wrapper_key
window.wrapper = new Wrapper(ws_url) window.wrapper = new Wrapper(ws_url)