...
|
...
|
@@ -663,7 +663,7 @@ function bindWriteLocal($brandList, list) { |
|
|
}
|
|
|
|
|
|
if (localStorage) {
|
|
|
if (isLocalStorageSupported) {
|
|
|
if (isLocalStorageSupported()) {
|
|
|
historys = localStorage.getItem('historys-brand');
|
|
|
}
|
|
|
|
...
|
...
|
@@ -682,9 +682,10 @@ function bindWriteLocal($brandList, list) { |
|
|
}
|
|
|
|
|
|
historys += query + ranToken;
|
|
|
|
|
|
if (isLocalStorageSupported()) {
|
|
|
localStorage.setItem('historys-brand', historys);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (list) {
|
|
|
location.href = url;
|
...
|
...
|
@@ -947,7 +948,9 @@ if ($('.brand-search-page').length > 0) { |
|
|
|
|
|
chHammer = new Hammer($clearHistory[0]);
|
|
|
chHammer.on('tap', function() {
|
|
|
if (isLocalStorageSupported()) {
|
|
|
localStorage.removeItem('historys-brand');
|
|
|
}
|
|
|
|
|
|
$history.html('');
|
|
|
$historySearch.hide();
|
...
|
...
|
|