* fix ai stuff relied on js().

This commit is contained in:
liwenrui
2024-03-05 15:21:17 +08:00
parent 6cfea37040
commit 1911578b7e
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -30,7 +30,8 @@ $inputInject = function()
$this->app->loadLang('ai');
js(<<< JAVASCRIPT
h::globalJS(<<< JAVASCRIPT
(() => {
window.injectToInputElement = (inputName, data, index, tries = 0) =>
{
let name = inputName;
@@ -178,6 +179,7 @@ $inputInject = function()
}
}
});
})();
JAVASCRIPT);
/* TODO: handle prompt audit, see original ../view/inputinject.html.php. */
+1 -1
View File
@@ -3,4 +3,4 @@ declare(strict_types=1);
namespace zin;
js("requestAnimationFrame(() => setTimeout(() => openUrl(`{$formLocation}`), 1000));");
h::globalJS("requestAnimationFrame(() => setTimeout(() => openUrl(`{$formLocation}`), 1000));");