Skip to content

Commit e3c2d38

Browse files
Merge pull request #153 from TheKetur55/patch-9
Early Server reload
2 parents 16f4d81 + 46a3fe5 commit e3c2d38

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/app/windows/update/update.component.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,18 @@ export class UpdateComponent implements OnInit, OnDestroy {
183183
this.translate.get('app.window.update-dofus.step8').subscribe((sentence: string) => this.progressText = sentence);
184184
this.ipcRendererService.send('update-finished', this.localVersions);
185185

186-
} catch (error) {
187-
186+
} catch (error) {
187+
if (this.dofusOrigin == "https://earlyproxy.touch.dofus.com/"){
188+
this.settingsService.option.general.early = false;
189+
window.location.reload();
190+
}
191+
else {
188192
let reason = (typeof error.message !== "undefined") ? "(" + error.message + ")" : "";
189193
this.translate.get('app.window.update-dofus.information.error').subscribe((sentence: string) => this.progressText = sentence + reason);
190194

191195
this.progressError = true;
192196
}
197+
}
193198
}
194199

195200
private async downloadAssetsFiles(async: boolean) {

0 commit comments

Comments
 (0)