Merge branch 'release/3.5.4'

This commit is contained in:
Baptiste Grob
2020-11-04 16:13:38 +01:00
4 changed files with 13 additions and 11 deletions

View File

@@ -4,17 +4,19 @@ export function getPlatformString() {
try {
const platform = navigator.platform.toLowerCase();
let trimmed = '';
if (platform.indexOf('mac') !== -1) {
if (platform.includes('mac')) {
trimmed = 'mac';
} else if (platform.indexOf('win') !== -1) {
} else if (platform.includes('win')) {
trimmed = 'windows';
}
if (platform.indexOf('linux') !== -1) {
} else if (platform.includes('linux')) {
trimmed = 'linux';
} else {
/** Treat other platforms as linux */
trimmed = 'linux';
}
return trimmed + (isDesktopApplication() ? '-desktop' : '-web');
} catch (e) {
return 'unknown-platform';
return 'linux-web';
}
}

View File

@@ -34,7 +34,7 @@ export class WebDeviceInterface extends DeviceInterface {
}
async getRawStorageValue(key: string) {
return localStorage.getItem(key);
return localStorage.getItem(key) as any;
}
async getAllRawStorageKeyValues() {