添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
果断的鸵鸟  ·  USAJOBS - Search·  3 月前    · 
笑点低的人字拖  ·  Malformed SNMP ...·  1 年前    · 
欢乐的汽水  ·  finance - The view ...·  1 年前    · 
OAuth2 authorization via window.open

A solution is to use BroadcastChannel to connect different tabs from same domain.

from opener:

const bc = new BroadcastChannel("mychannel")
bc.onmessage = (event) => {
    // handle event.data posted from your popup

from popup:

const bc = new BroadcastChannel("mychannel")
bc.postMessage("data to be handled on your opener")