Skip to content

Commit cd22094

Browse files
authored
Update random_button.js
Add random button on markers page.
1 parent 6e5b07f commit cd22094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/StashRandomButton/random_button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
const pathname = window.location.pathname.replace(/\/$/, '');
6868

6969
// GLOBAL
70-
if (pathname === '/scenes' || pathname === '/' || pathname === '' || pathname === '/stats' || pathname === '/settings' || /^\/scenes\/\d+$/.test(pathname))
70+
if (pathname === '/scenes' || pathname === '/' || pathname === '' || pathname === '/stats' || pathname === '/settings' || pathname === '/scenes/markers' || /^\/scenes\/\d+$/.test(pathname))
7171
return randomGlobal('Scene', 'scenes', '/scenes/');
7272

7373
if (pathname === '/images' || /^\/images\/\d+$/.test(pathname))

0 commit comments

Comments
 (0)