feat(ai): optimize tool loops, fix deployments, and integrate new onboarding flow
This commit is contained in:
15
vibn-frontend/docs/scripts/patch_window.js
Normal file
15
vibn-frontend/docs/scripts/patch_window.js
Normal file
@@ -0,0 +1,15 @@
|
||||
const fs = require('fs');
|
||||
|
||||
const file = 'app/(onboarding)/onboarding/page.tsx';
|
||||
let code = fs.readFileSync(file, 'utf8');
|
||||
|
||||
code = code.replace(
|
||||
'const close = () => { window.location.href = "index.html"; };',
|
||||
'const close = () => { if (typeof window !== "undefined") window.location.href = "/"; };'
|
||||
);
|
||||
code = code.replace(
|
||||
'const openChat = () => { window.location.href = "index.html"; };',
|
||||
'const openChat = () => { if (typeof window !== "undefined") window.location.href = "/"; };'
|
||||
);
|
||||
|
||||
fs.writeFileSync(file, code);
|
||||
Reference in New Issue
Block a user