Files
knowledge/attachment_preview/static/src/js/viewerjs_tweaks.js
tarteo b3c3f404d6 [MIG] attachment_preview: Migration to 11.0
[FIX] Lint

[FIX] lint and flake

[ADD] tests

[ADD] tests

[ADD] tests

[ADD] Tests

[ADD] Package python-magic

[ADD] Tests

[FIX] Lint
2022-08-23 11:33:18 +02:00

15 lines
500 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));