Skip to content

Commit

Permalink
Merge pull request #198 from nextcloud-libraries/backport/197/stable1
Browse files Browse the repository at this point in the history
[stable1] fix: explicitly use window.OC global in app config
  • Loading branch information
st3iny committed Jun 14, 2024
2 parents a246907 + 9d08bfb commit 79e8f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/appConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}')`,
}
},
},
Expand Down

0 comments on commit 79e8f41

Please sign in to comment.