websocket tool - alert when can't connect to specified base_url

This commit is contained in:
mDuo13
2015-06-10 15:47:24 -07:00
parent 00ea8db687
commit e85e0b7700

View File

@@ -699,7 +699,11 @@ var urlParams;
});
}
remote.connect(init);
try {
remote.connect(init);
} catch {
alert("Can't connect. Maybe blocked by cross-origin-scripting protections?");
}
if (window.location.hash) {
var cmd = window.location.hash.slice(1).toLowerCase();