added kashkool
This commit is contained in:
@@ -7,3 +7,12 @@ export function getConfigApp(key: string) {
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
export function isStoreApp(): boolean {
|
||||
const value = getConfigApp('is_store')
|
||||
if (value === true || value === 1) return true
|
||||
if (typeof value === 'string') {
|
||||
return ['true', '1', 'yes'].includes(value.trim().toLowerCase())
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user