You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Ionic 3 and Themeable Browser library, I custom button in toolbar Themeable Browser and first time click SitePointSitePressed() not run BUT click second time then run 2 event.
My Code
` const me = this;
this.ref = cordova.ThemeableBrowser.open(this.productUrl, '_blank', options)
.addEventListener('loadstart', function () {
console.log('loadstart')
me.viewProduct = false;
}).addEventListener('loadstop', function (event) {
console.log('load done');
}).addEventListener('loaderror', function (event) {
console.log('load error');
}).addEventListener('exit', function (x) {
console.log('exit app');
me.clear();
})
.addEventListener('SitePointSitePressed', function (x) {
me.dialogs.confirm(
"", // title
me.transText['addOrder'], // message
['OK', me.transText['quit']] // buttonLabels,
).then(onConfirm);
Yep, i can fix it. You download and replace "cordova-plugin-themeablebrowser" plugin in plugin folder.
step: remove plugin themeable > remove platform > add platform > replace themeable > build
I use Ionic 3 and Themeable Browser library, I custom button in toolbar Themeable Browser and first time click SitePointSitePressed() not run BUT click second time then run 2 event.
My Code
` const me = this;
this.ref = cordova.ThemeableBrowser.open(this.productUrl, '_blank', options)
.addEventListener('loadstart', function () {
console.log('loadstart')
me.viewProduct = false;
}).addEventListener('loadstop', function (event) {
console.log('load done');
}).addEventListener('loaderror', function (event) {
console.log('load error');
}).addEventListener('exit', function (x) {
console.log('exit app');
me.clear();
})
.addEventListener('SitePointSitePressed', function (x) {
me.dialogs.confirm(
"", // title
me.transText['addOrder'], // message
['OK', me.transText['quit']] // buttonLabels,
).then(onConfirm);
The text was updated successfully, but these errors were encountered: