From f870e912f3bf0b36186a81e9bff912c0d02c8f74 Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Mon, 22 Apr 2024 10:57:53 +0700 Subject: [PATCH] fix(developer): "use strict" for downlevel browsers in Server Fixes #11274. --- developer/src/server/src/site/chargrid.js | 2 ++ developer/src/server/src/site/packages.js | 2 ++ developer/src/server/src/site/test.js | 2 ++ developer/src/server/src/site/upload.js | 2 ++ developer/src/server/src/site/websocket.js | 2 ++ 5 files changed, 10 insertions(+) diff --git a/developer/src/server/src/site/chargrid.js b/developer/src/server/src/site/chargrid.js index f6c31f2df30..2f48545ed7b 100644 --- a/developer/src/server/src/site/chargrid.js +++ b/developer/src/server/src/site/chargrid.js @@ -1,3 +1,5 @@ +"use strict"; + /* Character Grid */ (function() { diff --git a/developer/src/server/src/site/packages.js b/developer/src/server/src/site/packages.js index 2255fe9ebd6..c6f0e674540 100644 --- a/developer/src/server/src/site/packages.js +++ b/developer/src/server/src/site/packages.js @@ -1,3 +1,5 @@ +"use strict"; + const menuDropdown = new DropdownMenu('menu'); let packages = null; let packagesJSON = null; diff --git a/developer/src/server/src/site/test.js b/developer/src/server/src/site/test.js index 3e908685e5d..770833e2f0a 100644 --- a/developer/src/server/src/site/test.js +++ b/developer/src/server/src/site/test.js @@ -1,3 +1,5 @@ +"use strict"; + /* Global Variables */ let helpUrl = ''; // Will be updated when we retrieve the server API version diff --git a/developer/src/server/src/site/upload.js b/developer/src/server/src/site/upload.js index 556052bb93c..45d9228338e 100644 --- a/developer/src/server/src/site/upload.js +++ b/developer/src/server/src/site/upload.js @@ -1,3 +1,5 @@ +"use strict"; + /* File upload via browser */ const HIGHLIGHT_DELAY = 5000; diff --git a/developer/src/server/src/site/websocket.js b/developer/src/server/src/site/websocket.js index 1e8ca59ed4d..3be34597169 100644 --- a/developer/src/server/src/site/websocket.js +++ b/developer/src/server/src/site/websocket.js @@ -1,3 +1,5 @@ +"use strict"; + /* Websocket listening for updated resource notifications */ WebSockHop.disable.mobile = false;