mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-22 13:22:19 -06:00
15 lines
503 B
JavaScript
15 lines
503 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) {
|
|
window.Viewer = function (plugin, parameters) {
|
|
if (!plugin) {
|
|
// eslint-disable-next-line no-alert
|
|
alert('Unsupported file type');
|
|
}
|
|
return original_Viewer(plugin, parameters);
|
|
};
|
|
}(window.Viewer));
|