This commit is contained in:
Pig Fang 2020-03-26 10:32:36 +08:00
parent 458d462831
commit 3fbf32ed14

View File

@ -63,7 +63,7 @@ class Hook
}); });
} }
public static function registerPluginTransScripts(string $name, $pages = ['*'], $priority = 999): void public static function registerPluginTransScripts(string $name, $pages = ['*']): void
{ {
Event::listen(Events\RenderingFooter::class, function ($event) use ($name, $pages) { Event::listen(Events\RenderingFooter::class, function ($event) use ($name, $pages) {
foreach ($pages as $pattern) { foreach ($pages as $pattern) {
@ -82,7 +82,7 @@ class Hook
return; return;
} }
}, $priority); });
} }
public static function addStyleFileToPage($urls, $pages = ['*']): void public static function addStyleFileToPage($urls, $pages = ['*']): void