Skip to content

Commit 353d8ff

Browse files
committed
add copy page button
1 parent 6ba293d commit 353d8ff

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

src/components/RightSidebar/CopyPageLink/CopyPageLink.tsx

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,7 @@ Please ask me to paste it now. After I paste, please:
121121

122122
const chatgptUrl = `https://chatgpt.com/?prompt=${encodeURIComponent(instructionPrompt)}`
123123

124-
if (
125-
confirm(
126-
"✓ Page content copied to clipboard!\n\nChatGPT will open and ask you to paste it. Just press Ctrl+V (or Cmd+V on Mac).\n\nContinue?"
127-
)
128-
) {
129-
window.open(chatgptUrl, "_blank", "noopener,noreferrer")
130-
}
124+
window.open(chatgptUrl, "_blank", "noopener,noreferrer")
131125
break
132126
}
133127

@@ -149,13 +143,7 @@ Please ask me to paste it now. After I paste, please:
149143

150144
const claudeUrl = `https://claude.ai/new?q=${encodeURIComponent(instructionPrompt)}`
151145

152-
if (
153-
confirm(
154-
"✓ Page content copied to clipboard!\n\nClaude will open and ask you to paste it. Just press Ctrl+V (or Cmd+V on Mac).\n\nContinue?"
155-
)
156-
) {
157-
window.open(claudeUrl, "_blank", "noopener,noreferrer")
158-
}
146+
window.open(claudeUrl, "_blank", "noopener,noreferrer")
159147
break
160148
}
161149
}

0 commit comments

Comments
 (0)