mirror of
https://github.com/tiennm99/WPlace-AutoBOT.git
synced 2026-10-14 20:16:53 +00:00
repatch?
This commit is contained in:
1 parent
f312a568a2
commit
e507e1ac21
1 file changed
+10
-1
+10
-1
@@ -1029,7 +1029,8 @@
|
||||
|
||||
const widgetId = window.turnstile.render(container, {
|
||||
sitekey,
|
||||
size: 'invisible',
|
||||
// Allowed sizes: compact | normal | flexible
|
||||
size: 'compact',
|
||||
action,
|
||||
retry: 'auto',
|
||||
callback: (token) => {
|
||||
@@ -1045,6 +1046,14 @@
|
||||
}
|
||||
});
|
||||
this._turnstileWidgetId = widgetId;
|
||||
// Manually execute after render for invisible-like behavior
|
||||
try {
|
||||
if (typeof window.turnstile?.execute === 'function') {
|
||||
window.turnstile.execute(widgetId, { action });
|
||||
}
|
||||
} catch (execErr) {
|
||||
console.warn('Turnstile execute after render failed (callback may still fire):', execErr);
|
||||
}
|
||||
} catch (e) {
|
||||
reject(e);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user