Update externallinks.php
This commit is contained in:
parent
f4d9352013
commit
099a1735db
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue