From bf7f222c592c54e1cea33f97a0b891970ee37f1e Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 25 Jan 2019 19:05:45 +0100 Subject: [PATCH] wip #2303 @1 --- js/libs/fluidbook/fluidbook.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.js b/js/libs/fluidbook/fluidbook.js index ec4a61dc..db3e9e2d 100644 --- a/js/libs/fluidbook/fluidbook.js +++ b/js/libs/fluidbook/fluidbook.js @@ -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)); } }, } -- 2.39.5