Thanks to visit codestin.com
Credit goes to github.com

Skip to content

uupaa/WebIntent.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebIntent.js Build Status

npm

WebIntent implement.

Browser and NW.js(node-webkit)

<script src="<module-dir>/lib/WebModule.js"></script>
<script src="<module-dir>/lib/WebIntent.js"></script>
<script>
if (0) {
    // # Open the Google Play store.
    var packageName = "com.android.vending";           // Google Play
    var url         = "https://play.google.com/store"; // Google Play
    var intentURL   = WebIntent.build(packageName, url);

    WebIntent.redirect( intentURL );
}

if (0) {
    // # Open the page of Caniuse.com in Chrome for Android.
    var packageName = "com.android.chrome";               // Chrome for Android package name
    var url         = "http://caniuse.com/#search=webgl"; // Caniuse.com
    var intentURL   = WebIntent.build(packageName, url);

    WebIntent.redirect( intentURL );
}
</script>

About

WebIntent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published