From 2a6945cbe5b27563078addd592d600ea14b56c85 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 12 Nov 2018 10:54:21 +0100 Subject: [PATCH] Fix export in the pad app with Chrome --- www/pad/export.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/pad/export.js b/www/pad/export.js index 2bc54a430..263593a54 100644 --- a/www/pad/export.js +++ b/www/pad/export.js @@ -38,7 +38,7 @@ define([ module.main = function (userDoc, cb) { var inner; - if (userDoc instanceof Element || userDoc instanceof HTMLElement) { + if (userDoc && userDoc.tagName) { inner = userDoc; } else { try {