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
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue