diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 9e0d76dc9..0f326fe7d 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -13698,12 +13698,12 @@ return Header.addShortcut(slideNav, true); }); if (Conf['Announcements'] === 'slideout') { - if ((psa = $.id('#globalMessage')) && !psa.hidden) { + if ((psa = $.id('globalMessage')) && !psa.hidden) { psaIcon = $.el('i', { id: 'so-psa', innerHTML: '' }); - $.add(psa, psaIcon); + $.add(psaIcon, psa); Header.addShortcut(psaIcon, true); } } diff --git a/builds/crx/script.js b/builds/crx/script.js index f331426ce..b1b1e98d9 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -13702,12 +13702,12 @@ return Header.addShortcut(slideNav, true); }); if (Conf['Announcements'] === 'slideout') { - if ((psa = $.id('#globalMessage')) && !psa.hidden) { + if ((psa = $.id('globalMessage')) && !psa.hidden) { psaIcon = $.el('i', { id: 'so-psa', innerHTML: '' }); - $.add(psa, psaIcon); + $.add(psaIcon, psa); Header.addShortcut(psaIcon, true); } } diff --git a/src/Theming/Style.coffee b/src/Theming/Style.coffee index 158980c8e..34045d9be 100644 --- a/src/Theming/Style.coffee +++ b/src/Theming/Style.coffee @@ -158,11 +158,11 @@ Style = # Announcements if Conf['Announcements'] is 'slideout' - if (psa = $.id '#globalMessage') and !psa.hidden + if (psa = $.id 'globalMessage') and !psa.hidden psaIcon = $.el 'i', id: 'so-psa' innerHTML: '' - $.add psa, psaIcon + $.add psaIcon, psa Header.addShortcut psaIcon, true if g.VIEW is 'thread'