1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-27 08:14:35 +02:00

JS: Remove outdated check

This commit is contained in:
Jakub Vrana
2025-03-20 07:39:21 +01:00
parent 7c75d3f86c
commit 11699223df

View File

@@ -107,19 +107,17 @@ function verifyVersion(current, url, token) {
iframe.scrolling = 'no'; iframe.scrolling = 'no';
iframe.style.width = '7ex'; iframe.style.width = '7ex';
iframe.style.height = '1.25em'; iframe.style.height = '1.25em';
if (window.postMessage && window.addEventListener) { iframe.style.display = 'none';
iframe.style.display = 'none'; addEventListener('message', function (event) {
addEventListener('message', function (event) { if (event.origin == 'https://www.adminer.org') {
if (event.origin == 'https://www.adminer.org') { var match = /version=(.+)/.exec(event.data);
var match = /version=(.+)/.exec(event.data); if (match) {
if (match) { cookie('adminer_version=' + match[1], 1);
cookie('adminer_version=' + match[1], 1); ajax(url + 'script=version', function () {
ajax(url + 'script=version', function () { }, event.data + '&token=' + token);
}, event.data + '&token=' + token);
}
} }
}, false); }
} }, false);
qs('#version').appendChild(iframe); qs('#version').appendChild(iframe);
} }