From 11699223df7b34b4d99e34a63a3f947b15c4aef9 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 20 Mar 2025 07:39:21 +0100 Subject: [PATCH] JS: Remove outdated check --- adminer/static/functions.js | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/adminer/static/functions.js b/adminer/static/functions.js index 4c432e1d..2a22370d 100644 --- a/adminer/static/functions.js +++ b/adminer/static/functions.js @@ -107,19 +107,17 @@ function verifyVersion(current, url, token) { iframe.scrolling = 'no'; iframe.style.width = '7ex'; iframe.style.height = '1.25em'; - if (window.postMessage && window.addEventListener) { - iframe.style.display = 'none'; - addEventListener('message', function (event) { - if (event.origin == 'https://www.adminer.org') { - var match = /version=(.+)/.exec(event.data); - if (match) { - cookie('adminer_version=' + match[1], 1); - ajax(url + 'script=version', function () { - }, event.data + '&token=' + token); - } + iframe.style.display = 'none'; + addEventListener('message', function (event) { + if (event.origin == 'https://www.adminer.org') { + var match = /version=(.+)/.exec(event.data); + if (match) { + cookie('adminer_version=' + match[1], 1); + ajax(url + 'script=version', function () { + }, event.data + '&token=' + token); } - }, false); - } + } + }, false); qs('#version').appendChild(iframe); }