mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-06 14:00:56 +00:00
After using CSP nonce, the "onerror" doesn't work anymore. Change it to use a global variable to detect Also help users like #37379 to catch errors more easily. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
21 lines
484 B
TypeScript
21 lines
484 B
TypeScript
import './globals.ts';
|
|
|
|
window.config = {
|
|
appUrl: 'http://localhost:3000/',
|
|
appSubUrl: '',
|
|
assetUrlPrefix: '/assets',
|
|
sharedWorkerUri: '',
|
|
runModeIsProd: true,
|
|
customEmojis: {},
|
|
pageData: {},
|
|
notificationSettings: {MinTimeout: 0, TimeoutStep: 0, MaxTimeout: 0, EventSourceUpdateTime: 0},
|
|
enableTimeTracking: true,
|
|
mermaidMaxSourceCharacters: 5000,
|
|
i18n: {},
|
|
frontendInited: false,
|
|
};
|
|
|
|
window.testModules = {};
|
|
|
|
export {}; // mark as module for top-level await
|