Skip to content

Commit 0c3cffe

Browse files
author
thyttan
committed
messagegui: use global consistently, not globalThis.
1 parent 8ae6e67 commit 0c3cffe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/messagegui/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,10 +722,10 @@ function checkMessages(options) {
722722
delete newMessages[0].show; // stop us getting stuck here if we're called a second time
723723
showMessagesScroller(newMessages[0]);
724724
// buzz after showMessagesScroller, so being busy during scroller setup doesn't affect the buzz pattern
725-
if (globalThis.BUZZ_ON_NEW_MESSAGE) {
725+
if (global.BUZZ_ON_NEW_MESSAGE) {
726726
// this is set if we entered the messages app by loading `messagegui.new.js`
727727
// ... but only buzz the first time we view a new message
728-
globalThis.BUZZ_ON_NEW_MESSAGE = false;
728+
global.BUZZ_ON_NEW_MESSAGE = false;
729729
// messages.buzz respects quiet mode - no need to check here
730730
require("messages").buzz(newMessages[0].src);
731731
}

0 commit comments

Comments
 (0)