Skip to content

Commit 6fbc39f

Browse files
committed
😆 fixed - spellchecker path on build:osx
1 parent 68cc2ec commit 6fbc39f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/main/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ function checkWindowURL() {
4141

4242
const APP_ICON = path.join(__dirname, '../resources', 'Icon');
4343

44+
const spellDict = path.join(__dirname, '../../node_modules/simple-spellchecker/dict');
45+
4446
const iconPath = () => {
4547
return APP_ICON + (process.platform === 'win32' ? '.ico' : '.png');
4648
};
@@ -151,7 +153,7 @@ app.on('ready', () => {
151153
const page = mainWindow.webContents;
152154

153155
// Add spellcheck dictionary
154-
SpellChecker.getDictionary('en-US', './node_modules/simple-spellchecker/dict', (err, result) => {
156+
SpellChecker.getDictionary('en-US', spellDict, (err, result) => {
155157
if (!err) {
156158
myDictionary = result;
157159
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Zulip-Desktop",
33
"productName": "Zulip",
4-
"version": "0.3.0",
4+
"version": "0.3.1",
55
"description": "Zulip Desktop App",
66
"license": "MIT",
77
"repository": {

0 commit comments

Comments
 (0)