Thank you very much Yuchen.

I tested the fix and it worked. There's no problem anymore.

Happy hacking.

On 22/06/2021 13:22, Yuchen Pei wrote:

Ali Reza Hayati <[email protected]> writes:

Hello people.

We received a message regarding this thread.

Apparently, LibreJS blocks what seems to be a free JavaScript on this
page [1].

The JavaScript itself is placed on [2].

I reported this problem. After trying to get some scripts on my website to work librejs, I am 98% sure this bug can be fixed by adding a '-' (hyphen) between Apache and 2.0 in the first line of prettify.js (https://www.gnu.org/software/librejs/js/prettify/prettify.js).

That is, instead of
// @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt Apache 2.0

make it
// @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt Apache-2.0

Can someone with access to the website repo try it out?

Best,
Yuchen


--
Ali Reza Hayati (https://alirezahayati.com)
Free culture activist and privacy advocate

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to