This repository has been archived on 2024-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
mediawiki-extensions-requirejs/RequireJSHooks.php
2022-02-03 00:31:47 +02:00

12 lines
353 B
PHP

<?php
class RequireJSHooks {
public static function onBeforePageDisplay(outputPage &$out, Skin &$skin){
// $out->addModules("ext.RequireJS");
$script = '<script type="text/javascript" src="/extensions/RequireJS/assets/js/require.js"></script>';
$out->addHeadItem("modRequireJS_main", $script);
return true;
}
}