From 9d08bfb1d29e846425d1da85eb2c38e0748eea49 Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Fri, 14 Jun 2024 09:48:41 +0200 Subject: [PATCH] fix: explicitly use window.OC global in app config Signed-off-by: Richard Steinmetz --- lib/appConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/appConfig.ts b/lib/appConfig.ts index 05352be..9398d7e 100644 --- a/lib/appConfig.ts +++ b/lib/appConfig.ts @@ -127,7 +127,7 @@ export const createAppConfig = (entries: { [entryAlias: string]: string }, optio } return { // already contains the "js/" prefix as it is our output file configuration - runtime: `OC.filePath('${appName}', '', '${filename}')`, + runtime: `window.OC.filePath('${appName}', '', '${filename}')`, } }, },