Skip to content

Commit

Permalink
获取 扩展ID
Browse files Browse the repository at this point in the history
  • Loading branch information
v1xingyue committed Dec 15, 2023
1 parent 8fef0d2 commit fe32ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/module4/message.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ console.log(resp)

1. 开发阶段你可以通过,扩展管理器中获得,开发过程中保持不变。
2. 发布后怎么获得呢?
一种解决思路是,通过 `background` 中调用 `chrome.runtime.id` 获得。然后通过其他途径传递到前端`Content-Script`
在扩展的相关页面中,可以通过 `chrome.runtime.id` 获取到。

:::

Expand Down

0 comments on commit fe32ae0

Please sign in to comment.