Skip to content

Commit 7775ac1

Browse files
author
darrenliuwei
committed
bug fixed
1 parent 8412d5c commit 7775ac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ chrome.contextMenus.create({
33
title: '百度一下',
44
contexts: ['selection'],
55
onclick: (info) => {
6-
window.open('https://www.baidu.com/s?wd=' + info.selectionText)
6+
window.open('https://www.baidu.com/s?wd=' + info.selectionText.replaceAll('&', '%26'))
77
},
88
})

0 commit comments

Comments
 (0)