We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bfece7 commit 0110ee6Copy full SHA for 0110ee6
src/tpl/defaultTheme/frontend/index.js
@@ -137,8 +137,9 @@
137
}
138
139
window.addEventListener('pagehide', function () {
140
- if (input.value) {
141
- sessionStorage.setItem(location.pathname, input.value);
+ const inputValue = input.value;
+ if (inputValue) {
142
+ sessionStorage.setItem(location.pathname, inputValue);
143
144
});
145
0 commit comments