prevent editing already edited locations

This commit is contained in:
buzz-lightsnack-2007 2024-05-01 14:35:35 +08:00
parent 1812672f9d
commit f930dbea0c

View file

@ -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;