initial commit
This commit is contained in:
7
app/utils/setting.js
Normal file
7
app/utils/setting.js
Normal file
@@ -0,0 +1,7 @@
|
||||
// A {{PLACEHOLDER}} that static-file-service did not fill in still starts
|
||||
// with "{{". In development nothing fills them in.
|
||||
export function setting(value, fallback) {
|
||||
return typeof value === 'string' && value.trim() && !value.startsWith('{{')
|
||||
? value
|
||||
: fallback;
|
||||
}
|
||||
Reference in New Issue
Block a user