From 79f02ea2fc8d9cb54dafbd1f3d4822c8b990bb9d Mon Sep 17 00:00:00 2001 From: Chris Klimas <1405578+klembot@users.noreply.github.com> Date: Sat, 4 Jul 2015 11:03:58 -0400 Subject: [PATCH] Be lenient about saving stories in NW.js Resolves #157 --- js/nwui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/nwui.js b/js/nwui.js index 6f74b83e1..45e5aef98 100644 --- a/js/nwui.js +++ b/js/nwui.js @@ -441,7 +441,7 @@ var nwui = { nwui.unlockStoryDirectory(); var fd = nwui.fs.openSync(nwui.filePath + '/' + nwui.storyFileName(story), 'w'); - nwui.fs.writeSync(fd, story.publish()); + nwui.fs.writeSync(fd, story.publish(null, null, true)); nwui.fs.closeSync(fd); } catch (e)