fix: boot.default_path is moved to boot.apps_data.default_path

This commit is contained in:
Shariq Ansari 2024-08-30 17:19:40 +05:30
parent f140d6d59e
commit cc5db784f3

View file

@ -32,7 +32,7 @@ frappe.setup = {
frappe.pages["setup-wizard"].on_page_load = function (wrapper) {
if (frappe.boot.setup_complete) {
window.location.href = frappe.boot.default_path || "/app";
window.location.href = frappe.boot.apps_data.default_path || "/app";
}
let requires = frappe.boot.setup_wizard_requires || [];
frappe.require(requires, function () {
@ -207,7 +207,7 @@ frappe.setup.SetupWizard = class SetupWizard extends frappe.ui.Slides {
}
setTimeout(function () {
// Reload
window.location.href = frappe.boot.default_path || "/app";
window.location.href = frappe.boot.apps_data.default_path || "/app";
}, 2000);
}