diff --git a/lib/plugin/metadata-loader.ts b/lib/plugin/metadata-loader.ts index ac6b639c1..786295729 100644 --- a/lib/plugin/metadata-loader.ts +++ b/lib/plugin/metadata-loader.ts @@ -4,7 +4,7 @@ export class MetadataLoader { private static readonly refreshHooks = new Array<() => void>(); static addRefreshHook(hook: () => void) { - return MetadataLoader.refreshHooks.unshift(hook); + return MetadataLoader.refreshHooks.push(hook); } async load(metadata: Record) {