Skip to content

Commit 639375c

Browse files
authored
Update random_button.js
Minor fixes
1 parent 46d1c68 commit 639375c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugins/StashRandomButton/random_button.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,16 @@
7373
if (pathname === '/images' || /^\/images\/\d+$/.test(pathname))
7474
return randomGlobal('Image', 'images', '/images/');
7575

76-
if (pathname === '/performers' || /^\/performers\/\d+$/.test(pathname))
76+
if (pathname === '/performers')
7777
return randomGlobal('Performer', 'performers', '/performers/');
7878

79-
if (pathname === '/studios' || /^\/studios\/\d+$/.test(pathname))
79+
if (pathname === '/studios')
8080
return randomGlobal('Studio', 'studios', '/studios/');
8181

82-
if (pathname === '/tags' || /^\/tags\/\d+$/.test(pathname))
82+
if (pathname === '/tags')
8383
return randomGlobal('Tag', 'tags', '/tags/');
8484

85-
if (pathname === '/groups' || /^\/groups\/\d+$/.test(pathname))
85+
if (pathname === '/groups')
8686
return randomGlobal('Group', 'groups', '/groups/');
8787

8888
if (pathname === '/galleries')

0 commit comments

Comments
 (0)