Themeable browser events


#1

How do you get this to work?

I have:

  const browser: ThemeableBrowserObject = this.themeableBrowser.create(this.link, '_blank', options)
           
           browser.on('sharePressed'), function(e) {
                      alert('wds');
           };

Doesn’t work.


#2

In this case I have by-passed the ionic version of this plugin and gone with the Cordova version. Work fine.

 const browser =  cordova.ThemeableBrowser.open(this.link, '_blank', options);
        
         browser.addEventListener('openPressed', function(e) {
			alert('here');
         });