mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-06 02:30:47 -08:00
parent
3e51aecd69
commit
ed7a2ba7cc
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ async function executeTWJavaScriptWhenIdle<T>(script: string, options?: { onlyWh
|
|||
(async () => await new Promise((resolve, reject) => {
|
||||
const handler = () => {
|
||||
requestIdleCallback(() => {
|
||||
if (typeof $tw !== 'undefined') {
|
||||
if (typeof $tw?.rootWidget !== 'undefined' && typeof $tw?.wiki !== 'undefined') {
|
||||
try {
|
||||
const result = (() => {
|
||||
${script}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue