Skip to content

Commit

Permalink
😆 fixed - spellchecker path on build:osx
Browse files Browse the repository at this point in the history
  • Loading branch information
akashnimare committed Aug 31, 2016
1 parent 68cc2ec commit 6fbc39f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ function checkWindowURL() {

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

const spellDict = path.join(__dirname, '../../node_modules/simple-spellchecker/dict');

const iconPath = () => {
return APP_ICON + (process.platform === 'win32' ? '.ico' : '.png');
};
Expand Down Expand Up @@ -151,7 +153,7 @@ app.on('ready', () => {
const page = mainWindow.webContents;

// Add spellcheck dictionary
SpellChecker.getDictionary('en-US', './node_modules/simple-spellchecker/dict', (err, result) => {
SpellChecker.getDictionary('en-US', spellDict, (err, result) => {
if (!err) {
myDictionary = result;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Zulip-Desktop",
"productName": "Zulip",
"version": "0.3.0",
"version": "0.3.1",
"description": "Zulip Desktop App",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit 6fbc39f

Please sign in to comment.