Skip to content

Commit f9d3c9f

Browse files
Scene editor: improve reload in macos.
1 parent 9988f58 commit f9d3c9f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

source/v2/phasereditor/phasereditor.scene.ui.editor.html/html/Editor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ namespace PhaserEditor2D {
213213

214214
private onReloadPage() {
215215
this._socket.close();
216-
window.location.reload();
216+
// window.location.reload();
217+
window.location.href = window.location.href;
217218
}
218219

219220
private onUpdateSceneProperties(msg: any) {

source/v2/phasereditor/phasereditor.scene.ui.editor.html/html/out/Editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ var PhaserEditor2D;
157157
};
158158
Editor.prototype.onReloadPage = function () {
159159
this._socket.close();
160-
window.location.reload();
160+
window.location.href = window.location.href;
161161
};
162162
Editor.prototype.onUpdateSceneProperties = function (msg) {
163163
this.sceneProperties = msg.sceneProperties;

0 commit comments

Comments
 (0)