Avoiding the local reserved word “location” override.

This commit is contained in:
jesus2099 2016-05-19 14:23:22 +02:00
parent a8f043a8e5
commit 452f3db217

View file

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