Update 0BDFDB.plugin.js
This commit is contained in:
parent
7b00e3d301
commit
fa2e70ddcb
|
@ -669,7 +669,7 @@ module.exports = (_ => {
|
||||||
updateNotice.style.setProperty("opacity", "1", "important");
|
updateNotice.style.setProperty("opacity", "1", "important");
|
||||||
let reloadButton = updateNotice.querySelector(BDFDB.dotCN.noticebutton);
|
let reloadButton = updateNotice.querySelector(BDFDB.dotCN.noticebutton);
|
||||||
if (reloadButton) {
|
if (reloadButton) {
|
||||||
BDFDB.DOMUtils.toggle(reloadButton, true);
|
BDFDB.DOMUtils.hide(reloadButton);
|
||||||
reloadButton.addEventListener("mouseenter", _ => {
|
reloadButton.addEventListener("mouseenter", _ => {
|
||||||
if (window.PluginUpdates.downloaded) BDFDB.TooltipUtils.create(reloadButton, window.PluginUpdates.downloaded.join(", "), {
|
if (window.PluginUpdates.downloaded) BDFDB.TooltipUtils.create(reloadButton, window.PluginUpdates.downloaded.join(", "), {
|
||||||
type: "bottom",
|
type: "bottom",
|
||||||
|
@ -719,7 +719,7 @@ module.exports = (_ => {
|
||||||
let reloadButton = updateNotice.querySelector(BDFDB.dotCN.noticebutton);
|
let reloadButton = updateNotice.querySelector(BDFDB.dotCN.noticebutton);
|
||||||
if (reloadButton) {
|
if (reloadButton) {
|
||||||
updateNotice.querySelector(BDFDB.dotCN.noticeupdatetext).innerText = BDFDB.LanguageUtils.LibraryStrings.update_notice_reload;
|
updateNotice.querySelector(BDFDB.dotCN.noticeupdatetext).innerText = BDFDB.LanguageUtils.LibraryStrings.update_notice_reload;
|
||||||
BDFDB.DOMUtils.toggle(reloadButton, false);
|
BDFDB.DOMUtils.show(reloadButton);
|
||||||
}
|
}
|
||||||
else updateNotice.querySelector(BDFDB.dotCN.noticedismiss).click();
|
else updateNotice.querySelector(BDFDB.dotCN.noticedismiss).click();
|
||||||
}
|
}
|
||||||
|
@ -3513,8 +3513,8 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
function toggle(node) {
|
function toggle(node) {
|
||||||
if (!node || !Node.prototype.isPrototypeOf(node)) return;
|
if (!node || !Node.prototype.isPrototypeOf(node)) return;
|
||||||
let hidden = force === undefined ? !BDFDB.DOMUtils.isHidden(node) : !force;
|
let hide = force === undefined ? !BDFDB.DOMUtils.isHidden(node) : !force;
|
||||||
if (hidden) {
|
if (hide) {
|
||||||
let display = node.style.getPropertyValue("display");
|
let display = node.style.getPropertyValue("display");
|
||||||
if (display && display != "none") node.BDFDBhideDisplayState = {
|
if (display && display != "none") node.BDFDBhideDisplayState = {
|
||||||
display: display,
|
display: display,
|
||||||
|
|
Loading…
Reference in New Issue