From a88d82595f1afc50ee1a2a1b7044a8b33d06f753 Mon Sep 17 00:00:00 2001 From: ILikePlayingGames <22475143+ILikePlayingGames@users.noreply.github.com> Date: Fri, 22 Dec 2023 03:33:59 -0500 Subject: Fix open-in-new-tab.js not working with instant navigation --- docs/js/open-in-new-tab.js | 6 ++---- 1 file 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 -- cgit