2024-04-25 16:01:08: merge [main:7f9a52684105c7ff0a068812245c462ceb6d553e];

This commit is contained in:
txix committed 2024-04-25 16:01:08 +03:00
1 parent 5a5f104174
commit a31c44eb7b
121 files changed
+14802 -84

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
declare global {
interface Window {
config: { [key: string]: any };
}
}
export const getConfigProperty = (property: string, defaultValue: any) => {
if (
window.config &&
Object.prototype.hasOwnProperty.call(window.config, property)
) {
return window.config[property]
}
return defaultValue
}