From 3f2f33da02384e72a688cc8eb0dbf17388d61e22 Mon Sep 17 00:00:00 2001 From: Federico Date: Sun, 30 Jun 2024 17:11:13 +0800 Subject: [PATCH] Fix race condition --- source/advanced-editors-messenger.js | 2 +- source/ghost-text.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/advanced-editors-messenger.js b/source/advanced-editors-messenger.js index 13616eb..096a097 100644 --- a/source/advanced-editors-messenger.js +++ b/source/advanced-editors-messenger.js @@ -130,4 +130,4 @@ function unsafeMessenger() { unsafeMessenger(); -console.log('Advanced editors messenger injected!') +console.log('Advanced editors messenger ready'); diff --git a/source/ghost-text.js b/source/ghost-text.js index 41c00ea..6b9e743 100644 --- a/source/ghost-text.js +++ b/source/ghost-text.js @@ -348,4 +348,4 @@ function stopGT() { window.startGT = startGT; window.stopGT = stopGT; -startGT(); +setTimeout(startGT, 100);