Warp script in anonymous scope (IIFE)

It was erroneously removed in 9b64d50660.
This commit is contained in:
Chocobo1 2024-02-19 14:00:10 +08:00
parent cffd74b62a
commit 9192c988ed

View file

@ -843,14 +843,16 @@
<script>
'use strict';
const qbtVersion = window.parent.qBittorrent.Cache.qbtVersion.get();
const buildInfo = window.parent.qBittorrent.Cache.buildInfo.get();
(() => {
const qbtVersion = window.parent.qBittorrent.Cache.qbtVersion.get();
const buildInfo = window.parent.qBittorrent.Cache.buildInfo.get();
$('qbittorrentVersion').innerText = `qBittorrent ${qbtVersion} QBT_TR(WebUI)QBT_TR[CONTEXT=OptionsDialog]`;
$('qtVersion').textContent = buildInfo.qt;
$('libtorrentVersion').textContent = buildInfo.libtorrent;
$('boostVersion').textContent = buildInfo.boost;
$('opensslVersion').textContent = buildInfo.openssl;
$('zlibVersion').textContent = buildInfo.zlib;
$('qbittorrentVersion').textContent += ` (${buildInfo.bitness}-bit)`;
$('qbittorrentVersion').innerText = `qBittorrent ${qbtVersion} QBT_TR(WebUI)QBT_TR[CONTEXT=OptionsDialog]`;
$('qtVersion').textContent = buildInfo.qt;
$('libtorrentVersion').textContent = buildInfo.libtorrent;
$('boostVersion').textContent = buildInfo.boost;
$('opensslVersion').textContent = buildInfo.openssl;
$('zlibVersion').textContent = buildInfo.zlib;
$('qbittorrentVersion').textContent += ` (${buildInfo.bitness}-bit)`;
})();
</script>