2024-04-25 16:01:08: merge [main:7f9a52684105c7ff0a068812245c462ceb6d553e];
This commit is contained in:
1 parent
5a5f104174
commit
a31c44eb7b
121 files changed
+14802
-84
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user