Added handling of —permit-arguments option

This commit is contained in:
Quentin Perez 2015-10-05 09:50:13 +02:00
parent 7715f93517
commit a4e77b2b76
4 changed files with 42 additions and 5 deletions

View file

@ -1,5 +1,6 @@
(function() {
var httpsEnabled = window.location.protocol == "https:";
var args = window.location.search;
var url = (httpsEnabled ? 'wss://' : 'ws://') + window.location.host + window.location.pathname + 'ws';
var protocols = ["gotty"];
var autoReconnect = -1;
@ -12,8 +13,7 @@
var pingTimer;
ws.onopen = function(event) {
ws.send(gotty_auth_token);
ws.send(JSON.stringify({ Arguments: args, AuthToken: gotty_auth_token,}));
pingTimer = setInterval(sendPing, 30 * 1000, ws);
hterm.defaultStorage = new lib.Storage.Local();