Skip to content

Commit

Permalink
[Hot Cards] Add missing popstate event listener (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
HandyRandyx authored Oct 5, 2024
1 parent 29a18d8 commit 131a9e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/hotCards/hotCards.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Hot Cards
description: Adds custom styling to card elements that match a Tag ID or a Rating Threshold.
version: 1.2.0
version: 1.2.1
url: https://github.com/stashapp/CommunityScripts/tree/main/plugins/hotCards
# requires: CommunityScriptsUILibrary
ui:
Expand Down
4 changes: 4 additions & 0 deletions plugins/hotCards/utils/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ function overrideHistoryMethods(callback) {
return result;
};
});

window.addEventListener("popstate", function () {
callback();
});
}

/** Path Change Listener */
Expand Down

0 comments on commit 131a9e3

Please sign in to comment.