knowledge/attachment_preview/static/src/js/viewerjs_tweaks.js
2025-01-02 12:03:55 +01:00

16 lines
521 B
JavaScript

/* Copyright 2014 Therp BV (<http://therp.nl>)
* License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */
// This file contains tweaks for viewerjs itself and is not meant to be run in
// OpenERP's context
(function (original_Viewer) {
"use strict";
window.Viewer = function (plugin, parameters) {
if (!plugin) {
// eslint-disable-next-line no-alert
alert("Unsupported file type");
}
return original_Viewer(plugin, parameters);
};
})(window.Viewer);