TS complete

This commit is contained in:
Mo Bitar
2020-04-13 10:04:19 -05:00
parent 3d955e4b7d
commit 7ee9610dca
29 changed files with 351 additions and 435 deletions

View File

@@ -54,7 +54,7 @@ export class PreferencesManager extends ApplicationService {
}
}
getValue(key: WebPrefKey, defaultValue: any) {
getValue(key: WebPrefKey, defaultValue?: any) {
if (!this.userPreferences) { return defaultValue; }
const value = this.userPreferences.getPref(key);
return (value !== undefined && value !== null) ? value : defaultValue;