Skip to content

Commit 7ab8bae

Browse files
tonypark0403gideonthomas
authored andcommitted
Issue1677 (#579)
* modified the file, PostMessageTransport.js * modified the file.PostMessageTransport.js when only navigate * modified the file by intent rule * used a 4-space indent
1 parent 1454b66 commit 7ab8bae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/extensions/default/bramble/lib/PostMessageTransport.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,12 @@ define(function (require, exports, module) {
160160
// Because we need to deal with reloads on this side (i.e., editor) of the
161161
// transport, check message before sending to remote, and reload if necessary
162162
// without actually sending to remote for processing.
163-
if(msg.method === "Page.reload" || msg.method === "Page.navigate") {
163+
if(msg.method === "Page.reload") {
164164
reload();
165165
return;
166+
} else if(msg.method === "Page.navigate") {
167+
reload(true);
168+
return;
166169
}
167170

168171
win.postMessage(msgStr, "*");

0 commit comments

Comments
 (0)