Skip to content

Commit e27fd12

Browse files
committed
DO_NOT_MERGE: try not changing iFrame URL
This is for a test while investigating error message when open/closing the inPageMenu When clicking the cloud image in a field, nothing happens expect having an error message on the console stating `Failed to load resource The requested URL was not found on this server` This seems to be related to those line when changing the menuEl.src, then iFrame's url is refreshed and this message appears I still don't understand what prevents the iFrame to refresh, knowing that the first display is based on the same URL (only args are changing)
1 parent 4a66990 commit e27fd12

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/content/menuCtrler.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -642,11 +642,12 @@ function _setApplyFadeInUrl(doApply, fieldTypes) {
642642
console.log('setHash')
643643
state.iFrameHash = {...state.iFrameHash, ...fieldTypes, applyFadeIn: true}
644644
console.log('end setHash')
645-
encodeURIComponent(JSON.stringify(state.iFrameHash))
645+
menuEl.src = url.origin + url.pathname + url.search + '#' +'%7B%22arrowD%22%3A0%2C%22hostFrameId%22%3A0%7D'
646+
// encodeURIComponent(JSON.stringify(state.iFrameHash))
646647
} else {
647648
state.iFrameHash.applyFadeIn = false
648-
menuEl.src = url.origin + url.pathname + url.search + '#' +
649-
encodeURIComponent(JSON.stringify(state.iFrameHash))
649+
menuEl.src = url.origin + url.pathname + url.search + '#' + '%7B%22arrowD%22%3A0%2C%22hostFrameId%22%3A0%7D'
650+
// encodeURIComponent(JSON.stringify(state.iFrameHash))
650651
}
651652
}
652653

0 commit comments

Comments
 (0)