diff options
| author | sD <stoned@derpymail.org> | 2020-02-10 00:54:20 +0100 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2020-02-10 00:54:20 +0100 |
| commit | 1ed5430702ad4581fc2d7f676b2b3400c3608618 (patch) | |
| tree | 8fd577991f618d68e71cb41cf0faf2c5a20a7b96 /webAO/master.js | |
| parent | 11b8d05fe39a70dd9a4b22623e098373a846eb55 (diff) | |
don't need this anymore
Diffstat (limited to 'webAO/master.js')
| -rw-r--r-- | webAO/master.js | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/webAO/master.js b/webAO/master.js index 4a711be..43d7ba9 100644 --- a/webAO/master.js +++ b/webAO/master.js @@ -44,38 +44,6 @@ const server_description = []; server_description[-1] = "This is your computer on port 50001"; const online_counter = []; -/** - * read a cookie from storage - * got this from w3schools - * https://www.w3schools.com/js/js_cookies.asp - * @param {String} cname The name of the cookie to return - */ -function getCookie(cname) { - var name = cname + "="; - var decodedCookie = decodeURIComponent(document.cookie); - var ca = decodedCookie.split(';'); - for (var i = 0; i < ca.length; i++) { - var c = ca[i]; - while (c.charAt(0) === ' ') { - c = c.substring(1); - } - if (c.indexOf(name) === 0) { - return c.substring(name.length, c.length); - } - } - return ""; -} - -/** - * set a cookie - * the version from w3schools expects these to expire - * @param {String} cname The name of the cookie to return - * @param {String} value The value of that cookie option - */ -function setCookie(cname,value) { - document.cookie = cname + "=" + value; -} - export function setServ(ID) { console.log(server_description[ID]); if (server_description[ID] !== undefined) { @@ -140,8 +108,8 @@ function checkOnline(serverID, coIP) { }; oserv.onerror = function(evt) { - onCOError(evt) - }; + onCOError(evt); + }; } |
