Grammalecte  Check-in [eb6fceda3a]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:[fx] copy to clipbdoard still works for Chrome (Firefox bug)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256:eb6fceda3af05f260a87dccc11d1e9c8fd5e28d4a1e424ddd2b5eb6bc99641ce
User & Date: olr 2019-05-13 06:33:47
Context
2019-05-13
07:57
[fr] ajustements et faux positifs check-in: 5679818a47 user: olr tags: fr, trunk
06:33
[fx] copy to clipbdoard still works for Chrome (Firefox bug) check-in: eb6fceda3a user: olr tags: fx, trunk
2019-05-12
18:57
[fx] update manifest.json check-in: 49d3639117 user: olr tags: fx, trunk
Changes

Changes to gc_lang/fr/webext/content_scripts/init.js.

   224    224           catch (e) {
   225    225               showError(e);
   226    226           }
   227    227       },
   228    228   
   229    229       sendTextToClipboard (sText)  {
   230    230           // recipe from https://github.com/mdn/webextensions-examples/blob/master/context-menu-copy-link-with-types/clipboard-helper.js
   231         -        // It doesn’t seem to work anymore
          231  +        // It doesn’t seem to work anymore on Firefox. Still OK on Chrome.
   232    232           //console.log(sText);
   233    233           function setClipboardData (xEvent) {
   234    234               document.removeEventListener("copy", setClipboardData, true);
   235    235               xEvent.stopImmediatePropagation();
   236    236               xEvent.preventDefault();
   237    237               xEvent.clipboardData.setData("text/plain", sText);
   238    238           }