mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-17 04:32:55 -06:00
16 lines
521 B
JavaScript
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);
|