Skip to content

Commit

Permalink
Updated Medium v3
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Jun 23, 2024
1 parent a4b5e34 commit ff27c2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iframe/3/medium.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
let port;
window.onmessage = (e) =>
{
if (e.data !== 's9e:init' || port)
if (e.data !== 's9e:init:3' || port)
{
return;
}
Expand Down
2 changes: 1 addition & 1 deletion iframe/3/medium.min.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><title>Content from Medium</title><style>body{margin:0}iframe{border:1px solid;border-color:#eee #ddd #bbb;border-radius:5px;box-shadow:#00000026 0 1px 3px;height:calc(100vh - 5px);width:calc(100% - 2px)}</style><script>((d,e)=>{let a;e.onmessage=f=>{if('s9e:init'===f.data&&!a){var b=d.createElement('iframe');b.loading='eager';b.scrolling='no';b.src='https://api.medium.com/embed?type=story&path=%2F%40%2F'+e.location.hash.replace(/\W/g,'');a=f.ports[0];a.postMessage({method:'forward'});a.onmessage=c=>{'message'===c.data.method&&(c=/^m::\d+::(\d+)$/.exec(c.data.data))&&a.postMessage({method:'resize',height:+c[1]+5})};d.body.append(b)}}})(document,window)</script>
<!DOCTYPE html><title>Content from Medium</title><style>body{margin:0}iframe{border:1px solid;border-color:#eee #ddd #bbb;border-radius:5px;box-shadow:#00000026 0 1px 3px;height:calc(100vh - 5px);width:calc(100% - 2px)}</style><script>((d,e)=>{let a;e.onmessage=f=>{if('s9e:init:3'===f.data&&!a){var b=d.createElement('iframe');b.loading='eager';b.scrolling='no';b.src='https://api.medium.com/embed?type=story&path=%2F%40%2F'+e.location.hash.replace(/\W/g,'');a=f.ports[0];a.postMessage({method:'forward'});a.onmessage=c=>{'message'===c.data.method&&(c=/^m::\d+::(\d+)$/.exec(c.data.data))&&a.postMessage({method:'resize',height:+c[1]+5})};d.body.append(b)}}})(document,window)</script>

0 comments on commit ff27c2e

Please sign in to comment.