lint compliance

This commit is contained in:
yflory 2023-07-18 13:33:22 +02:00
parent 7d2a1b35ae
commit 9d52e9e9c6

View file

@ -34,7 +34,7 @@ define([
var diagrams = doc.querySelectorAll('diagram');
diagrams.forEach(function(diagram) {
if (diagram.childNodes.length == 1 && diagram.firstChild && diagram.firstChild.nodeType === TEXT_NODE) {
if (diagram.childNodes.length === 1 && diagram.firstChild && diagram.firstChild.nodeType === TEXT_NODE) {
const innerText = diagram.firstChild.nodeValue;
const bin = Nacl.util.decodeBase64(innerText);
const xmlUrlStr = pako.inflateRaw(bin, {to: 'string'});