diff --git a/plugins/draw-tools.user.js b/plugins/draw-tools.user.js index 3b909d7d..55aaf01b 100644 --- a/plugins/draw-tools.user.js +++ b/plugins/draw-tools.user.js @@ -290,12 +290,16 @@ window.plugin.drawTools.optAlert = function(message) { } window.plugin.drawTools.optCopy = function() { - dialog({ - html: '

Select all and press CTRL+C to copy it.

', - width: 600, - dialogClass: 'ui-dialog-drawtoolsSet-copy', - title: 'Draw Tools Export' - }); + if (typeof android !== 'undefined' && android && android.shareString) { + android.shareString(localStorage['plugin-draw-tools-layer']); + } else { + dialog({ + html: '

Select all and press CTRL+C to copy it.

', + width: 600, + dialogClass: 'ui-dialog-drawtoolsSet-copy', + title: 'Draw Tools Export' + }); + } } window.plugin.drawTools.optPaste = function() {