Skip to content

Commit

Permalink
fix: fix the url format of copy function in toast modal (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiufan committed Jan 4, 2024
1 parent d8c90c2 commit fdb9858
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ export default class PageSpy {
<p><b>Project:</b> ${project}</p>
`,
onOk: () => {
const text = `${clientOrigin}/devtools?version=${this.name}&address=${this.address}`;
const text = `${clientOrigin}/#/devtools?version=${encodeURIComponent(
this.name,
)}&address=${encodeURIComponent(this.address)}`;
const copyRes = copy(text);
let message = '';
const langs = navigator.languages;
Expand Down

0 comments on commit fdb9858

Please sign in to comment.