mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-13 04:30:41 -05:00
The filters on the mod listing page are now also saved to the browser's local storage system. This means you can set a bunch of filters and a sort order, browse away (or close the browser), and the next time you visit the page the site will remember the filters that you had set.
13 lines
404 B
JavaScript
13 lines
404 B
JavaScript
import "./registerViteAssets";
|
|
import "./registerAlpineLivewire";
|
|
import "./themeToggle";
|
|
|
|
document.addEventListener("livewire:init", () => {
|
|
Livewire.on("clear-filters", (event) => {
|
|
localStorage.removeItem("filter-query");
|
|
localStorage.removeItem("filter-order");
|
|
localStorage.removeItem("filter-sptVersion");
|
|
localStorage.removeItem("filter-featured");
|
|
});
|
|
});
|