Fix export in the pad app with Chrome

pull/1/head
yflory 2018-11-12 10:54:21 +01:00
parent 4daa2266c0
commit 2a6945cbe5
1 changed files with 1 additions and 1 deletions

View File

@ -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 {