remove gettext definition in Utils.js

this should not be here, rather where we include the language files
(like in pve), because this is not ecma conform and behaves very
different in different browsers (e.g. safari ignores the if check
completely and simply uses that function definition)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2018-03-06 09:06:28 +01:00 committed by Dietmar Maurer
parent 2e6df526fa
commit ea7fb2205f

View File

@ -1,10 +1,6 @@
Ext.ns('Proxmox');
Ext.ns('Proxmox.Setup');
if (!Ext.isFunction(gettext)) {
function gettext(buf) { return buf; }
}
if (!Ext.isDefined(Proxmox.Setup.auth_cookie_name)) {
throw "Proxmox library not initialized";
}