newroco / emlviewer

nextcloud eml viewer plugin
GNU Affero General Public License v3.0
16 stars 3 forks source link

email viewer fails on Nextcloud 20 beta2 #22

Closed small1 closed 4 years ago

small1 commented 4 years ago

viewer-main.js?v=5dcd6e50-17:394 Please do NOT wait for the DOMContentLoaded before registering your viewer handler

Uncaught ReferenceError: isSecureViewerAvailable is not defined at Object._extendFileActions (script.js?v=5dcd6e50-17:67) at Object.attach (script.js?v=5dcd6e50-17:15) at Object.attach (main.js?v=5dcd6e50-17:1) at FileList.initialize (merged-index.js?v=5dcd6e50-17:4325) at new FileList (merged-index.js?v=5dcd6e50-17:3922) at Object.initialize (merged-index.js?v=5dcd6e50-17:82) at merged-index.js?v=5dcd6e50-17:363 at main.js?v=5dcd6e50-17:1

These two errors pops up on nextcloud 20 beta2 generating a white page for the file viewer app.

lucianpricop commented 4 years ago

I corrected the code to check if isSecureViewerAvailable exists before calling it. Will test at some point on NC 20 beta2. Thank you