Skip to content

Commit

Permalink
replace hardcoded origin url with chrome.runtime.id
Browse files Browse the repository at this point in the history
  • Loading branch information
oggnimodd committed Sep 3, 2023
1 parent b77a8c4 commit ef8b840
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/plugin/content-scripts/listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ class Listener {
window.addEventListener("message", (event) => {
// For chatgpt

if (
event.origin === "chrome-extension://bmobgkekollfcijfkncdgbbdpmpjflia"
) {
if (event.origin === `chrome-extension://${chrome.runtime.id}`) {
if (this.chatprovider === "chat-gpt") {
const promptField = document.querySelector(
"#prompt-textarea",
Expand Down

0 comments on commit ef8b840

Please sign in to comment.