mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-11-10 13:14:16 +00:00
Avoiding the local reserved word “location” override.
This commit is contained in:
parent
a8f043a8e5
commit
452f3db217
1 changed files with 1 additions and 2 deletions
|
@ -61,8 +61,7 @@ function setRecordingComments() {
|
|||
});
|
||||
}, 1000);
|
||||
|
||||
var location = window.location.pathname;
|
||||
if (!location.match(/\/release\/[a-f\d]{8}-[a-f\d]{4}-[a-f\d]{4}-[a-f\d]{4}-[a-f\d]{12}$/)) {
|
||||
if (!location.pathname.match(/^\/release\/[a-f\d]{8}-[a-f\d]{4}-[a-f\d]{4}-[a-f\d]{4}-[a-f\d]{12}$/)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue