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
public function onExtra($name) {
$output = "";
public function onParsePageExtra($page, $name) {
$output = null;
if ($name == "header") {
$location = $this->yellow->system->get("coreServerBase") . "system/workers/externallinks.js";
$output .= "<script type=\"text/javascript\" src=\"{$location}\" async></script>\n";
$assetLocation = $this->yellow->system->get("coreServerBase") . $this->yellow->system->get("coreAssetLocation");
$output .= "<script type=\"text/javascript\" defer=\"defer\" src=\"{$assetLocation}externallinks.js\"></script>\n";
}
return $output;
}