Skip to content

Commit 131a9e3

Browse files
authored
[Hot Cards] Add missing popstate event listener (#451)
1 parent 29a18d8 commit 131a9e3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

plugins/hotCards/hotCards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Hot Cards
22
description: Adds custom styling to card elements that match a Tag ID or a Rating Threshold.
3-
version: 1.2.0
3+
version: 1.2.1
44
url: https://github.com/stashapp/CommunityScripts/tree/main/plugins/hotCards
55
# requires: CommunityScriptsUILibrary
66
ui:

plugins/hotCards/utils/helpers.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ function overrideHistoryMethods(callback) {
8585
return result;
8686
};
8787
});
88+
89+
window.addEventListener("popstate", function () {
90+
callback();
91+
});
8892
}
8993

9094
/** Path Change Listener */

0 commit comments

Comments
 (0)