more strict url check

This commit is contained in:
Plailect 2017-09-29 10:35:39 -04:00
parent 4404ad976c
commit 2753841481
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