Skip to content

Commit

Permalink
Missed an ipc
Browse files Browse the repository at this point in the history
  • Loading branch information
smwhr committed May 14, 2024
1 parent acb3396 commit 323d15d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"url": "git+https://github.com/inkle/inky.git"
},
"scripts": {
"start": "electron main-process/main.js"
"postinstall": "node ../build/createDocumentnavigation.js && markdown-html resources/Documentation/WritingWithInk.md -s resources/Documentation/documentation.css -o renderer/documentation/embedded.html",
"start": "electron main-process/main.js",
"test": "./node_modules/mocha/bin/mocha",
"generate-locale": "node ../build/generateLocale.js"
},
"keywords": [
"ink",
Expand Down
2 changes: 1 addition & 1 deletion app/renderer/inkProject.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ InkProject.prototype.buildForWeb = function(jsonFilePath, targetDirectory) {

InkProject.prototype.tryClose = function() {
if( this.hasUnsavedChanges ) {
ipc.invoke("try-close").then((responseObject) => {
ipcRenderer.invoke("try-close").then((responseObject) => {
var response = responseObject.response;
if( response == 0 ) {
this.save(false, () => {
Expand Down

0 comments on commit 323d15d

Please sign in to comment.