mirror of
https://github.com/hacks-guide/Guide_3DS.git
synced 2025-08-30 11:49:52 +02:00
more strict url check
This commit is contained in:
@@ -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
Reference in New Issue
Block a user