prevent editing already edited locations
This commit is contained in:
parent
1812672f9d
commit
f930dbea0c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue