From f930dbea0c79cf1b551135a45ff3f331c7191df8 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Wed, 1 May 2024 14:35:35 +0800 Subject: [PATCH] prevent editing already edited locations --- scripts/GUI/window.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/GUI/window.js b/scripts/GUI/window.js index c534753..dfc5ce4 100644 --- a/scripts/GUI/window.js +++ b/scripts/GUI/window.js @@ -91,7 +91,7 @@ export default class Window { } // Check if the URL starts with a valid protocol. If not, it is most likely an extension page. - (!(this.url.startsWith(`http`) && this.url.contains(`://`))) + (!(this.url.indexOf(`://`) > 2)) ? this.url = chrome.runtime.getURL(this.url) : false;