Skip to content
Snippets Groups Projects
Commit aecc6915 authored by Lucie Bader's avatar Lucie Bader
Browse files

Correction mode beug/prod

parent 00a20e22
No related branches found
No related tags found
1 merge request!8Test final
......@@ -38,11 +38,6 @@
"default_title": "ff2BaLex"
},
"options_ui": {
"page": "src/options/options.html",
"open_in_tab": false
},
"sidebar_action": {
"default_title": "BaLex",
"default_panel": "src/sidebar/sidebar.html",
......@@ -64,13 +59,7 @@
"src/utils/stats.js"],
"css": ["src/context_menu/custom_context_menu.css"],
"run_at": "document_idle"
},
{
"matches": ["<all_urls>"],
"js": ["src/utils/stats.js"],
"run_at": "document_end"
}
],
"web_accessible_resources": [
......
/**
* Mode debug : affiche les logs dans la console
* Mode prod : masque les logs ainsi que les identifiants des lexiques
*/
const DEBUG = false; // false en prod
const DEBUG = true; // false en prod
function log(...args) {
if (DEBUG) {
console.log(...args);
}
}
if (typeof window !== 'undefined') {
window.log = log;
} else if (typeof self !== 'undefined') {
self.log = log;
}
(function () {
if (window.hasRun) {
return;
}
......@@ -310,7 +311,7 @@
rect.setAttribute("stroke-width", "0.5");
rect.setAttribute("stroke-dasharray", "200 200");
rect.setAttribute("stroke-dashoffset", "400");
rect.style.animation = "dashAnimation 8s ease-in-out infinite";
rect.style.animation = "dashAnimation 6s ease-in-out infinite";
svg.appendChild(rect);
document.body.appendChild(svg);
......
importScripts("../utils/logger.js");
log("✅ pyodide_worker.js chargé avec succès !");
// URL de la version Pyodide la plus récente
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment