Update privatebin.js

This commit is contained in:
TW - Vincent 2025-09-21 19:02:12 +02:00 committed by GitHub
parent b0df8e10f5
commit 9b496acde5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -931,11 +931,12 @@ jQuery.PrivateBin = (function($) {
// load strings from JSON
let main_script = document.querySelector('script[src^="js/privatebin.js"]');
let privatebin_version;
if (main_script) {
let privatebin_version = main_script.getAttribute("src").split("?")[1] || null;
privatebin_version = main_script.getAttribute("src").split("?")[1] || null;
} else {
let privatebin_version = Math.floor(Date.now() / 60000);
privatebin_version = Math.floor(Date.now() / 60000);
}
$.getJSON('i18n/' + newLanguage + '.json?v=' + privatebin_version, function(data) {