single-file-core 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -270,7 +270,10 @@ function parseFamilyNames(fontFamilyNameTokenData, fontFamilyNames) {
|
|
|
270
270
|
} else if (nextToken.data.type == "String") {
|
|
271
271
|
fontFamilyNames.push(helper.normalizeFontFamily(nextToken.data.value));
|
|
272
272
|
nextToken = nextToken.next;
|
|
273
|
-
} else if (nextToken.data.type == "
|
|
273
|
+
} else if (nextToken.data.type == "Number") {
|
|
274
|
+
fontFamilyNames.push(helper.normalizeFontFamily(String(nextToken.data.value)));
|
|
275
|
+
nextToken = nextToken.next;
|
|
276
|
+
} else {
|
|
274
277
|
nextToken = nextToken.next;
|
|
275
278
|
}
|
|
276
279
|
}
|
package/package.json
CHANGED
|
@@ -80,8 +80,8 @@ async function process(pageData, options) {
|
|
|
80
80
|
pageContent += "<div id='sfz-wait-message'>Please wait...</div>";
|
|
81
81
|
pageContent += "<div id='sfz-error-message'><strong>Error</strong>: Cannot open the page from the filesystem.";
|
|
82
82
|
pageContent += "<ul style='line-height:20px;'>";
|
|
83
|
-
pageContent += "<li style='margin-bottom:10px'><strong>Chrome</strong>: Install <a href='https://chrome.google.com/webstore/detail/singlefile/mpiodijhokgodhhofbcjdecpffjipkle'>SingleFile</a> and enable the option \"Allow access to file URLs\" in the details page of the extension (chrome://extensions/?id=
|
|
84
|
-
pageContent += "<li style='margin-bottom:10px'><strong>Microsoft Edge</strong>: Install <a href='https://microsoftedge.microsoft.com/addons/detail/singlefile/efnbkdcfmcmnhlkaijjjmhjjgladedno'>SingleFile</a> and enable the option \"Allow access to file URLs\" in the details page of the extension (edge://extensions/?id=
|
|
83
|
+
pageContent += "<li style='margin-bottom:10px'><strong>Chrome</strong>: Install <a href='https://chrome.google.com/webstore/detail/singlefile/mpiodijhokgodhhofbcjdecpffjipkle'>SingleFile</a> and enable the option \"Allow access to file URLs\" in the details page of the extension (chrome://extensions/?id=mpiodijhokgodhhofbcjdecpffjipkle).</li>";
|
|
84
|
+
pageContent += "<li style='margin-bottom:10px'><strong>Microsoft Edge</strong>: Install <a href='https://microsoftedge.microsoft.com/addons/detail/singlefile/efnbkdcfmcmnhlkaijjjmhjjgladedno'>SingleFile</a> and enable the option \"Allow access to file URLs\" in the details page of the extension (edge://extensions/?id=efnbkdcfmcmnhlkaijjjmhjjgladedno).</li>";
|
|
85
85
|
pageContent += "<li><strong>Safari</strong>: Select \"Security > Disable Local File Restrictions\" in the \"Develop > Developer settings\" menu.</li></ul></div>";
|
|
86
86
|
if (options.insertTextBody) {
|
|
87
87
|
const doc = (new DOMParser()).parseFromString(pageData.content, "text/html");
|