[openstreetmap/openstreetmap-website] LibreJS compatibility (#2886)

Michael McMahon notifications at github.com
Wed Oct 14 20:39:44 UTC 2020


With LibreJS installed, I have to whitelist two external scripts, reload, whitelist a third script, and reload before the page works.  Exact instructions would require a better understanding of how the JavaScript is served.  Maybe weblabels would be the best approach.

An simple example of a script tag would look like this:

```
<script>
// @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-2.0
var myString = "Hello World!";
alert(myString);
// @license-end
</script>
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2886#issuecomment-708647519
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20201014/d5bace17/attachment.htm>


More information about the rails-dev mailing list