Skip to content

Instantly share code, notes, and snippets.

@tehsis
Created March 18, 2014 01:31
Show Gist options
  • Save tehsis/9611922 to your computer and use it in GitHub Desktop.
Save tehsis/9611922 to your computer and use it in GitHub Desktop.
Using webinstaller with requirejs
require(['./app/vendors/webinstaller/webinstaller'], function(Webinstaller) {
var installer = new Webinstaller('http://localhost/manifest.webapp');
var install_button = document.getElementById('instalar');
install_button.addEventListener('click', function() {
installer.install();
}, false);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment