goldendict-ng icon indicating copy to clipboard operation
goldendict-ng copied to clipboard

Dictionary js is loaded twice

Open popyoung opened this issue 1 year ago • 3 comments

起因:剑桥词典的 more example 打不开。 调试后发现目录下js加载了两次,导致click事件重复加载。一次响应展开了 example,第二次响应又关闭了。 我先自己修改下js,防止多次加载。

popyoung avatar Nov 22 '23 15:11 popyoung

Bot detected the issue body's language is not English, translate it automatically.

Cause: Cambridge Dictionary's more example cannot be opened. After debugging, it was found that the js in the directory was loaded twice, causing the click event to be loaded repeatedly. One response expanded example, and the second response closed it. I first modify the js myself to prevent multiple loadings.

github-actions[bot] avatar Nov 22 '23 15:11 github-actions[bot]

原则上不会加载2次,是不是有其他词典的影响

xiaoyifang avatar Dec 12 '23 01:12 xiaoyifang

Bot detected the issue body's language is not English, translate it automatically.

In principle, it will not be loaded twice. Is it affected by other dictionaries?

github-actions[bot] avatar Dec 12 '23 01:12 github-actions[bot]