Overview
Comment: | [fx] loadImage cleanup and minor change |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | fx | webext_sharedworker |
Files: | files | file ages | folders |
SHA3-256: |
07a6a29cb12f50eaf1ca87d0d7a2cf6c |
User & Date: | IllusionPerdu on 2017-08-10 17:23:21 |
Other Links: | branch diff | manifest | tags |
Context
2017-08-10
| ||
17:54 | [fx] Add filter in messages exchange to fix some double exec check-in: 470dd34432 user: IllusionPerdu tags: fx, webext_sharedworker | |
17:23 | [fx] loadImage cleanup and minor change check-in: 07a6a29cb1 user: IllusionPerdu tags: fx, webext_sharedworker | |
16:48 | [fx] Add image loader for content_script check-in: ef8e7d82d5 user: IllusionPerdu tags: fx, webext_sharedworker | |
Changes
Modified gc_lang/fr/webext/content_scripts/modify_page.js from [40a7f962ad] to [ca56c295c7].
︙ | ︙ | |||
49 50 51 52 53 54 55 | } document.body.appendChild(iframe); /* * Bidoule pour les les images du module et les intégrès sur la page */ function loadImage(sContennaireID, sImagePath){ | | < | | | | | < | | < | < < < | | < | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | } document.body.appendChild(iframe); /* * Bidoule pour les les images du module et les intégrès sur la page */ function loadImage(sContennaireID, sImagePath){ let xRequest; xRequest = new XMLHttpRequest(); xRequest.open('GET', browser.extension.getURL("")+sImagePath, false); xRequest.responseType = "arraybuffer"; xRequest.send(); let blobTxt = new Blob([xRequest.response], {type: 'image/png'}); let img = document.createElement('img'); img.src = (URL || webkitURL).createObjectURL(blobTxt); Array.filter( document.getElementsByClassName(sContennaireID), function(oElment){ oElment.appendChild(img); }); } console.log('[Web] La suite des initialisations'); let nWrapper = 0; let xConjPanel = null; let xTFPanel = null; |
︙ | ︙ |