more strict url check

This commit is contained in:
Plailect 2017-09-29 10:35:39 -04:00
parent 568241d75d
commit 7c75c281ff
No known key found for this signature in database
GPG key ID: F8A415C5EA602A41
2 changed files with 3 additions and 3 deletions

View file

@ -138,13 +138,13 @@ $(document).ready(function(){
};
for(var device in devices){
if(window.location.href.indexOf(device) > -1) {
if(window.location.href.indexOf("/" + device) > -1) {
localStorage.setItem('device', devices[device]);
}
}
for(var method in methods){
if(window.location.href.indexOf(method) > -1) {
if(window.location.href.indexOf("/" + method) > -1) {
localStorage.setItem('method', methods[method]);
}
}

File diff suppressed because one or more lines are too long