From 1b5ed6a60c284ffadb342cb01a13f05ecda22f4c Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Fri, 9 Mar 2018 15:11:49 -0800 Subject: [PATCH] Fix CMD+A backspace issue - Closes #272 --- lib/constants.js | 3 ++- pages/editor.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/constants.js b/lib/constants.js index f066ade..754bab7 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -461,5 +461,6 @@ export const DEFAULT_SETTINGS = { lineNumbers: false, exportSize: '2x', titleBar: '', - watermark: false + watermark: false, + squaredImage: false } diff --git a/pages/editor.js b/pages/editor.js index e01f194..4ec70ac 100644 --- a/pages/editor.js +++ b/pages/editor.js @@ -238,7 +238,7 @@ class Editor extends React.Component { onAspectRatioChange={this.updateAspectRatio} updateTitleBar={this.updateTitleBar} > - {this.state.code || DEFAULT_CODE} + {this.state.code != null ? this.state.code : DEFAULT_CODE} )}