From 853bd5fa85812316a72b2f5ce755dc0facb91932 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 21 Sep 2020 18:42:51 +0200 Subject: ye olde in-app browsered doth itself beopen in a newe windowe --- StoneIsland/www/js/index.js | 2 ++ StoneIsland/www/js/lib/view/Serializable.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'StoneIsland/www/js') diff --git a/StoneIsland/www/js/index.js b/StoneIsland/www/js/index.js index 3947b43e..0e9ee355 100755 --- a/StoneIsland/www/js/index.js +++ b/StoneIsland/www/js/index.js @@ -115,6 +115,8 @@ var app = (function(){ // } push.init() + window.open = cordova.InAppBrowser.open + if (navigator.onLine) { app.account.connect(window.deepLinkRoute || '/intro') app.blog.fetch(function(){ diff --git a/StoneIsland/www/js/lib/view/Serializable.js b/StoneIsland/www/js/lib/view/Serializable.js index acf77f2c..bc281b15 100755 --- a/StoneIsland/www/js/lib/view/Serializable.js +++ b/StoneIsland/www/js/lib/view/Serializable.js @@ -155,7 +155,7 @@ var SerializableView = View.extend({ } else { this.hide_errors() - window.cordova && window.Keyboard.close() + window.cordova && window.Keyboard.hide() } var finalized_data = this.finalize(valid.data) -- cgit v1.2.3-70-g09d2