From 562f3ad3006f04f21a62b55a47e40a6cd04fd000 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sun, 1 Dec 2019 18:11:24 -0500 Subject: #869 use window.open for desktop --- www/js/HelpCtrl.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/www/js/HelpCtrl.js b/www/js/HelpCtrl.js index 6f4a7466..bc9c3f0b 100644 --- a/www/js/HelpCtrl.js +++ b/www/js/HelpCtrl.js @@ -66,7 +66,12 @@ angular.module('zmApp.controllers').controller('zmApp.HelpCtrl', ['$scope', '$ro options = { }; console.log ('got '+url); - cordova.InAppBrowser.open(url, '_blank', options); + if ($rootScope.platformOS == 'desktop' ) { + window.open(url, '_blank', options); + } else { + cordova.InAppBrowser.open(url, '_blank', options); + } + }; -- cgit v1.2.3