]> _ Git - fluidbook-html5.git/commitdiff
(no commit message)
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 30 Jun 2015 14:27:20 +0000 (14:27 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 30 Jun 2015 14:27:20 +0000 (14:27 +0000)
js/libs/fluidbook/fluidbook.js

index d66b0a921bbff7767a5ff80de67ae5602fd1b83e..98df8b699250e39a9bff72601450278011fd2ae5 100644 (file)
@@ -1314,8 +1314,8 @@ Fluidbook.prototype = {
             if (types_android[type] != undefined) {
                 this.displayLoader();
                 setTimeout(function () {
-                    CDV.WEBINTENT.startActivity({
-                        action: CDV.WEBINTENT.ACTION_VIEW,
+                    window.plugins.webintent.startActivity({
+                        action: window.plugins.webintent.ACTION_VIEW,
                         type: types_android[type],
                         url: url
                     }, function (args) {
@@ -1394,10 +1394,10 @@ Fluidbook.prototype = {
 
         if (this.datas.phonegap == 'android') {
             var extras = {};
-            extras[CDV.WEBINTENT.EXTRA_SUBJECT] = subject;
+            extras[window.plugins.webintent.EXTRA_SUBJECT] = subject;
             extras[CDV.WEBINTENT.EXTRA_TEXT] = body;
-            CDV.WEBINTENT.startActivity({
-                action: CDV.WEBINTENT.ACTION_SEND,
+            window.plugins.webintent.startActivity({
+                action: window.plugins.webintent.ACTION_SEND,
                 type: 'text/plain',
                 extras: extras
             }, function (args) {