From 0ee064fbe159ea8b15e3a9d4045f034a96b4e701 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 12 Apr 2021 14:54:08 +0200 Subject: [PATCH] fix: this var does not exist and should be a member became apparent during testing when no native platform is returned --- src/open/ClientViewModel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/open/ClientViewModel.js b/src/open/ClientViewModel.js index e1b3db5..cf47c23 100644 --- a/src/open/ClientViewModel.js +++ b/src/open/ClientViewModel.js @@ -43,7 +43,7 @@ export class ClientViewModel extends ViewModel { this._webPlatform = matchingPlatforms.find(p => isWebPlatform(p)); this._nativePlatform = matchingPlatforms.find(p => !isWebPlatform(p)); const preferredPlatform = matchingPlatforms.find(p => p === this.preferences.platform); - this._proposedPlatform = preferredPlatform || this._nativePlatform || webPlatform; + this._proposedPlatform = preferredPlatform || this._nativePlatform || this._webPlatform; this.openActions = this._createOpenActions(); this.installActions = this._createInstallActions();