Update externallinks.php

This commit is contained in:
simonpipe 2026-05-28 09:20:04 +02:00
parent f4d9352013
commit 099a1735db

View file

@ -11,11 +11,11 @@ class YellowExternallinks {
} }
// Insert script into header // Insert script into header
public function onExtra($name) { public function onParsePageExtra($page, $name) {
$output = ""; $output = null;
if ($name == "header") { if ($name == "header") {
$location = $this->yellow->system->get("coreServerBase") . "system/workers/externallinks.js"; $assetLocation = $this->yellow->system->get("coreServerBase") . $this->yellow->system->get("coreAssetLocation");
$output .= "<script type=\"text/javascript\" src=\"{$location}\" async></script>\n"; $output .= "<script type=\"text/javascript\" defer=\"defer\" src=\"{$assetLocation}externallinks.js\"></script>\n";
} }
return $output; return $output;
} }