summaryrefslogtreecommitdiff
path: root/StoneIsland/plugins/cordova-plugin-customurlscheme/www/windows/LaunchMyApp.js
diff options
context:
space:
mode:
authorRene Ae <aehtyb@gmail.com>2015-12-01 00:51:02 -0600
committerRene Ae <aehtyb@gmail.com>2015-12-01 00:51:02 -0600
commit6415f506034262dd7151be2e35e1e1c1e97f4dfa (patch)
treec6e564e374967725a40fd87f7c5f3a1ba8019089 /StoneIsland/plugins/cordova-plugin-customurlscheme/www/windows/LaunchMyApp.js
parent5e07e273e18a609978253c45f3c5f702b0de4991 (diff)
parent9497b50fa02f3cfa9cb263ce3a96fa725282d60d (diff)
Merge branch 'master' of https://github.com/okfocus/stone-island
Diffstat (limited to 'StoneIsland/plugins/cordova-plugin-customurlscheme/www/windows/LaunchMyApp.js')
-rw-r--r--StoneIsland/plugins/cordova-plugin-customurlscheme/www/windows/LaunchMyApp.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/StoneIsland/plugins/cordova-plugin-customurlscheme/www/windows/LaunchMyApp.js b/StoneIsland/plugins/cordova-plugin-customurlscheme/www/windows/LaunchMyApp.js
new file mode 100644
index 00000000..a70d5e94
--- /dev/null
+++ b/StoneIsland/plugins/cordova-plugin-customurlscheme/www/windows/LaunchMyApp.js
@@ -0,0 +1,10 @@
+(function () {
+ function activatedHandler(e) {
+ if (typeof handleOpenURL == 'function' && e.uri) {
+ handleOpenURL(e.uri.rawUri);
+ }
+ };
+
+ var wui = Windows.UI.WebUI.WebUIApplication;
+ wui.addEventListener("activated", activatedHandler, false);
+}());