This commit is contained in:
Rizky 2023-10-19 14:46:36 +07:00
parent 093af3d3bc
commit 1478d02cfc
2 changed files with 6 additions and 1 deletions

View File

@ -38,11 +38,14 @@ export const ExternalDeploy = () => {
local.render(); local.render();
try { try {
local.api = createAPI(p.site.api_url); const url = p.site.api_url;
local.api = createAPI(url);
let res = await local.api._deploy({ let res = await local.api._deploy({
type: "check", type: "check",
id_site: p.site.id, id_site: p.site.id,
}); });
if (res) { if (res) {
local.db.url = res.db.url; local.db.url = res.db.url;
local.now = res.now; local.now = res.now;

View File

@ -179,6 +179,8 @@ export const fetchSendApi = async (
if (!win.frmapi) { if (!win.frmapi) {
win.frmapi = {}; win.frmapi = {};
}
if (!win.frmapi[base]) {
win.frmapi[base] = await createFrameCors(base, win); win.frmapi[base] = await createFrameCors(base, win);
} }