aboutsummaryrefslogtreecommitdiff
path: root/docs/js
diff options
context:
space:
mode:
authorILikePlayingGames <22475143+ILikePlayingGames@users.noreply.github.com>2023-12-22 03:33:59 -0500
committerILikePlayingGames <22475143+ILikePlayingGames@users.noreply.github.com>2023-12-22 03:33:59 -0500
commita88d82595f1afc50ee1a2a1b7044a8b33d06f753 (patch)
tree906f14ec0655c18588a184bfa4dbd203caf6ccf2 /docs/js
parent0a30bdc024931e18ccf282845c1631881e53a90f (diff)
downloadSkyBlockModWiki-a88d82595f1afc50ee1a2a1b7044a8b33d06f753.tar.gz
SkyBlockModWiki-a88d82595f1afc50ee1a2a1b7044a8b33d06f753.tar.bz2
SkyBlockModWiki-a88d82595f1afc50ee1a2a1b7044a8b33d06f753.zip
Fix open-in-new-tab.js not working with instant navigation
Diffstat (limited to 'docs/js')
-rw-r--r--docs/js/open-in-new-tab.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/js/open-in-new-tab.js b/docs/js/open-in-new-tab.js
index 643cf51..667de75 100644
--- a/docs/js/open-in-new-tab.js
+++ b/docs/js/open-in-new-tab.js
@@ -1,4 +1,4 @@
-(function (){
+document$.subscribe(function() {
const IGNORED_PATHS = []
for (const ignoredPath of IGNORED_PATHS) {
@@ -14,6 +14,4 @@
link.target = "_blank";
}
}
-
- console.debug(`[Open in New Tab] Changed external links to open in new tab.`);
-})(); \ No newline at end of file
+}) \ No newline at end of file