add prettier

This commit is contained in:
veselovnk committed 2024-04-04 10:54:10 +03:00
1 parent 6a9a45a4cc
commit 07fc6c0b6c
35 files changed
+530 -461

No files matched your search

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