Changes necessary to make Windows build work

This commit is contained in:
Scott Nonnenberg 2020-02-19 17:44:03 -08:00
parent 011e31be93
commit 148aedeeb4
3 changed files with 7 additions and 5 deletions

1
.gitattributes vendored Normal file
View file

@ -0,0 +1 @@
patches/* binary

View file

@ -279,7 +279,8 @@
"node_modules/sharp" "node_modules/sharp"
], ],
"artifactName": "${name}-win-${version}.${ext}", "artifactName": "${name}-win-${version}.${ext}",
"certificateSubjectName": "Signal", "certificateSubjectName": "Signal (Quiet Riddle Ventures, LLC)",
"certificateSha1": "77B2AA4421E5F377454B8B91E573746592D1543D",
"publisherName": "Signal (Quiet Riddle Ventures, LLC)", "publisherName": "Signal (Quiet Riddle Ventures, LLC)",
"icon": "build/icons/win/icon.ico", "icon": "build/icons/win/icon.ico",
"publish": [ "publish": [

View file

@ -1,11 +1,11 @@
diff --git a/node_modules/typo-js/typo.js b/node_modules/typo-js/typo.js diff --git a/node_modules/typo-js/typo.js b/node_modules/typo-js/typo.js
index 68c285b..11710a1 100644 index 68c285b..95ebc6c 100644
--- a/node_modules/typo-js/typo.js --- a/node_modules/typo-js/typo.js
+++ b/node_modules/typo-js/typo.js +++ b/node_modules/typo-js/typo.js
@@ -431,7 +431,7 @@ Typo.prototype = { @@ -431,7 +431,7 @@ Typo.prototype = {
dictionaryTable[word] = null; dictionaryTable[word] = null;
} }
- if (rules.length > 0) { - if (rules.length > 0) {
+ if (rules && rules.length > 0) { + if (rules && rules.length > 0) {
if (dictionaryTable[word] === null) { if (dictionaryTable[word] === null) {
@ -15,7 +15,7 @@ index 68c285b..11710a1 100644
else if (this.flags.FLAG === "num") { else if (this.flags.FLAG === "num") {
return textCodes.split(","); return textCodes.split(",");
} }
+ return []; + return [];
}, },
/** /**