Grammalecte  Diff

Differences From Artifact [b34663fda1]:

To Artifact [31953bf9da]:


215
216
217
218
219
220
221
222

223
224
225
226
227
228
229
230
231
232
233
234
235


236
237
238
239
240
241
242
215
216
217
218
219
220
221

222
223
224
225
226
227
228
229
230
231
232
233


234
235
236
237
238
239
240
241
242







-
+











-
-
+
+







            return xNode;
        }
        catch (e) {
            showError(e);
        }
    },

    createStyle: function (sLinkCss, sLinkId=null, oAppend=null) {
    createStyle: function (sLinkCss, sLinkId=null, xNodeToAppendTo=null) {
        try {
            let xNode = document.createElement("link");
            Object.assign(xNode, {
                rel: "stylesheet",
                type: "text/css",
                media: "all",
                href: this.sExtensionUrl + sLinkCss
            });
            if (sLinkId) {
                Object.assign(xNode, {id: sLinkId});
            }
            if (oAppend) {
                oAppend.appendChild(xNode);
            if (xNodeToAppendTo) {
                xNodeToAppendTo.appendChild(xNode);
            }
            return xNode;
        }
        catch (e) {
            showError(e);
        }
    }