diff mbox series

[1/5] web-app: fix linter warning

Message ID 20240224140031.9888-2-daniel@braunwarth.dev
State Accepted
Delegated to: Stefano Babic
Headers show
Series web-app: update web application | expand

Commit Message

Daniel Braunwarth Feb. 24, 2024, 2 p.m. UTC
./swupdate/web-app/js/swupdate.js:136:105: Unnecessary escape character: \/.

Signed-off-by: Daniel Braunwarth <daniel@braunwarth.dev>
---
 web-app/js/swupdate.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/web-app/js/swupdate.js b/web-app/js/swupdate.js
index b2731a3..6661d0a 100755
--- a/web-app/js/swupdate.js
+++ b/web-app/js/swupdate.js
@@ -133,7 +133,7 @@  window.onload = function () {
 
   if (window.location.protocol === 'https:') { protocol = 'wss:' } else { protocol = 'ws:' }
 
-  var ws = new WebSocket(protocol + '//' + window.location.host + window.location.pathname.replace(/\/[^\/]*$/, '') + '/ws')
+  var ws = new WebSocket(protocol + '//' + window.location.host + window.location.pathname.replace(/\/[^/]*$/, '') + '/ws')
 
   ws.onopen = function (event) {
     updateStatus(StatusEnum.IDLE)