Skip to content

Commit

Permalink
Merge pull request #246 from arch-fan/main
Browse files Browse the repository at this point in the history
Fix: Duplicated slash at copy button & shortcut
  • Loading branch information
midudev authored Jun 23, 2024
2 parents 693b5f8 + add49e5 commit 83bdf0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/aside.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const SIMPLE_CLICK_ACTIONS = {

[BUTTON_ACTIONS.copyToClipboard]: async () => {
const url = new URL(window.location.href)
const urlToCopy = `https://codi.link/${url.pathname}`
const urlToCopy = `https://codi.link${url.pathname}`
copyToClipboard(urlToCopy)
},

Expand Down
2 changes: 1 addition & 1 deletion src/components/codi-editor/extensions/editor-hotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const initEditorHotKeys = (editor) => {
monaco.KeyMod.CtrlCmd | monaco.KeyMod.Shift | monaco.KeyCode.KeyC,
() => {
const url = new URL(window.location.href)
const urlToCopy = `https://codi.link/${url.pathname}`
const urlToCopy = `https://codi.link${url.pathname}`
copyToClipboard(urlToCopy)
}
)
Expand Down

0 comments on commit 83bdf0d

Please sign in to comment.