From 02edd06b63759379946bfc44264f80685e6eae9e Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 24 Dec 2018 18:49:42 -0800 Subject: [PATCH] Use shared UID for all Moonlight clients --- static/js/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/static/js/index.js b/static/js/index.js index 13821d5..576528c 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -1,7 +1,7 @@ var hosts = {}; // hosts is an associative array of NvHTTP objects, keyed by server UID var activePolls = {}; // hosts currently being polled. An associated array of polling IDs, keyed by server UID var pairingCert; -var myUniqueid; +var myUniqueid = '0123456789ABCDEF'; // Use the same UID as other Moonlight clients to allow them to quit each other's games var api; // `api` should only be set if we're in a host-specific screen. on the initial screen it should always be null. var isInGame = false; // flag indicating whether the game stream started var windowState = 'normal'; // chrome's windowState, possible values: 'normal' or 'fullscreen' @@ -199,12 +199,13 @@ function moduleDidLoad() { } chrome.storage.sync.get('uniqueid', function(savedUniqueid) { - if (savedUniqueid.uniqueid != null) { // we have a saved uniqueid + // See comment on myUniqueid + /*if (savedUniqueid.uniqueid != null) { // we have a saved uniqueid myUniqueid = savedUniqueid.uniqueid; } else { myUniqueid = uniqueid(); storeData('uniqueid', myUniqueid, null); - } + }*/ if (!pairingCert) { // we couldn't load a cert. Make one. console.warn('%c[index.js, moduleDidLoad]', 'color: green;', 'Failed to load local cert. Generating new one');