IMPR: Fontawesome

This commit is contained in:
Tony Air 2021-09-17 00:31:35 +02:00
parent 142fc48b00
commit 15aa07ba91

View File

@ -85,6 +85,8 @@ class DeferredRequirements implements TemplateGlobalProvider
$v = !isset($config['fontawesome_version']) || !$config['fontawesome_version']
? Config::inst()->get(FontAwesomeField::class, 'version')
: $config['fontawesome_version'];
Requirements::customScript('FontAwesomeConfig={searchPseudoElements:true}');
self::loadJS('//use.fontawesome.com/releases/v'.$v.'/js/all.js');
}