nextcloud / gallery

DEPRECATED Gallery app was replaced by Photos
https://github.com/nextcloud/photos
GNU Affero General Public License v3.0
109 stars 58 forks source link

[18] Cannot set property DOMPurify of #<Window> which has only a getter #553

Open jameslao opened 4 years ago

jameslao commented 4 years ago

Nextcloud 18.0.0 Alpha Build:2019-10-25T22:01:44+00:00 0971f27565d2237711ac1001df9d8a0e966cb7e5

Gallery page blank

merged.js?v=f872093e-0:6082 Uncaught TypeError: Cannot set property DOMPurify of #<Window> which has only a getter
    at merged.js?v=f872093e-0:6082
    at merged.js?v=f872093e-0:6084
(function(factory) {
    'use strict';
    /* global window: false, define: false, module: false */
    var root = typeof window === 'undefined' ? null : window;

    if (typeof define === 'function' && define.amd) {
        define(function(){ return factory(root); });
    } else if (typeof module !== 'undefined') {
        module.exports = factory(root);
    } else {
-->     root.DOMPurify = factory(root);
    }
}