more strict url check
This commit is contained in:
parent
568241d75d
commit
7c75c281ff
2 changed files with 3 additions and 3 deletions
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
2
assets/js/main.min.js
vendored
2
assets/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue