Skip to content

Commit

Permalink
🩺 fix http iframe over https
Browse files Browse the repository at this point in the history
  • Loading branch information
Belikhun committed Oct 16, 2020
1 parent b576329 commit bec5c9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/smenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ const smenu = {
this.container.main.appendChild(content);
else if ((re = /iframe:(.+)/gm.exec(content)) !== null) {
this.iframe = document.createElement("iframe");
this.iframe.src = re[1];
this.iframe.src = (re[1][0] === "/") ? `${location.protocol}//${location.hostname}${re[1]}` : re[1];
this.container.main.appendChild(this.iframe);

this.iframe.addEventListener("load", () => resolve());
Expand Down

0 comments on commit bec5c9b

Please sign in to comment.