web: common: fix default page

This commit is contained in:
Vladislav Makhov 2021-06-03 15:52:07 +03:00
parent 4a3b61dda8
commit 61abe6a2fc

View File

@ -105,6 +105,11 @@ class SettingsStore {
getSettings = async () => {
const newSettings = await api.settings.getSettings();
if (window["AscDesktopEditor"] !== undefined || this.personal) {
const dp = combineUrl(proxyURL, "/products/files/");
this.setDefaultPage(dp);
}
Object.keys(newSettings).map((key) => {
if (key in this) {
this.setValue(
@ -124,11 +129,6 @@ class SettingsStore {
}
});
if (window["AscDesktopEditor"] !== undefined || this.personal) {
const dp = combineUrl(proxyURL, "/products/files/");
this.setDefaultPage(dp);
}
return newSettings;
};