add btn-wopilink button ; fix OpenWopiLink when options is null

This commit is contained in:
2022-02-09 16:27:13 +01:00
parent f6e667700e
commit 08f544f6ea
4 changed files with 11 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ window.addEventListener('DOMContentLoaded', function (e) {
wopiUrl: el.dataset.wopiUrl,
title: el.dataset.docTitle,
type: el.dataset.docType,
button: el.dataset.button ? JSON.parse(el.dataset.button) : {}
button: el.dataset.button !== 'null' ? JSON.parse(el.dataset.button) : {}
}
}
})