mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-04 20:05:50 +00:00
websocket tool - alert when can't connect to specified base_url
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user