]> _ Git - fluidbook-html5.git/commitdiff
wip #2303 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 25 Jan 2019 18:05:45 +0000 (19:05 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 25 Jan 2019 18:05:45 +0000 (19:05 +0100)
js/libs/fluidbook/fluidbook.js

index ec4a61dcc80c1939b2889c6c051850bce0f16be6..db3e9e2d8917b3f95a25e5a04d57f225e29d17c4 100644 (file)
@@ -791,6 +791,7 @@ Fluidbook.prototype = {
                                 console.log('resolved to dir');
                                 entry.copyTo(dirEntry, entry.name, function (copyEntry) {
                                     console.log('copied file');
+
                                     window.plugins.webintent.startActivity({
                                         action: window.plugins.webintent.ACTION_VIEW,
                                         type: types_android[type],
@@ -1014,8 +1015,13 @@ Fluidbook.prototype = {
 
     bugreport: function (e) {
         if (window.confirm('An error occured: ' + e.name + '. Do you want to send a report ?')) {
-            var subject = '[Fluidbook report] ' + e.message;
-            window.open('mailto:tech@fluidbook.com?subject=' + encodeURIComponent(subject) + '&body=' + encodeURIComponent(JSON.stringify(e)));
+            var subject = '[Fluidbook error report] ' + e.message;
+            var o = {
+                name: e.name,
+                message: e.message,
+                stack: e.stack,
+            }
+            window.location = 'mailto:tech@fluidbook.com?subject=' + encodeURIComponent(subject) + '&body=' + encodeURIComponent(JSON.stringify(o));
         }
     },
 }