Skip to content

Instantly share code, notes, and snippets.

@pcamp96
Created January 3, 2012 01:35
Show Gist options
  • Select an option

  • Save pcamp96/1553009 to your computer and use it in GitHub Desktop.

Select an option

Save pcamp96/1553009 to your computer and use it in GitHub Desktop.
showWebview: function(src, url) {
var prefs = new LocalStorage();
if (prefs.read('browserSelection') !== 'inAppBrowser' ) {
prefs.write('browserSelection', 'inAppBrowser');
this.controller.stageController.pushScene('webview', src)
.bind(this);
}
//this.controller.stageController.pushScene('webview', src);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment