Grammalecte  Diff

Differences From Artifact [6b8df706bd]:

To Artifact [9439cc3700]:


602
603
604
605
606
607
608
609

610
611
612

613
614
615
616
617
618
619
602
603
604
605
606
607
608

609
610
611

612
613
614
615
616
617
618
619







-
+


-
+








// Initialization
if(!conj.bInit && typeof(process) !== 'undefined') {
    // NodeJS
    conj.init(helpers.loadFile(__dirname+"/conj_data.json"));
} else if (!conj.bInit && typeof(browser) !== 'undefined') {
    // WebExtension Standard (but not in Worker)
    conj.init(helpers.loadFile(browser.extension.getURL("grammalecte/fr/conj_data.json")));
    conj.init(helpers.loadFile(browser.runtime.getURL("grammalecte/fr/conj_data.json")));
} else if (!conj.bInit && typeof(chrome) !== 'undefined') {
    // WebExtension Chrome (but not in Worker)
    conj.init(helpers.loadFile(chrome.extension.getURL("grammalecte/fr/conj_data.json")));
    conj.init(helpers.loadFile(chrome.runtime.getURL("grammalecte/fr/conj_data.json")));
} else if (conj.bInit){
    console.log("Module conj déjà initialisé");
} else {
    //console.log("Module conj non initialisé");
}