guess platform, might need tweaking still

This commit is contained in:
Bruno Windels
2020-12-03 13:53:47 +01:00
parent 5704ade5dc
commit 822431ac14
2 changed files with 28 additions and 6 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ export async function main(container) {
const vm = new RootViewModel({
request: xhrRequest,
openLink: url => location.href = url,
platforms: guessApplicablePlatforms(navigator.userAgent),
platforms: guessApplicablePlatforms(navigator.userAgent, navigator.platform),
preferences: new Preferences(window.localStorage),
origin: location.origin,
});