diff options
author | Sheogorath | 2018-06-23 20:55:32 +0200 |
---|---|---|
committer | Sheogorath | 2018-06-23 21:18:15 +0200 |
commit | f65d96c57b02c98616ffe3d8d7cc93f3e3942897 (patch) | |
tree | b5c309d11a7d17004f547afc895146b3cbb7dd36 /public/js/index.js | |
parent | a8b664fdb5b425625928d0ce6ae9cdbd78fb3833 (diff) |
Fix liniting and optimize some functions
First fixed some linting issues. Also optimized some functions to be
undoable with one ctrl+z.
This should also speedup some operations
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to '')
-rw-r--r-- | public/js/index.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/public/js/index.js b/public/js/index.js index 5e0aded6..6e13fe9c 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -30,8 +30,6 @@ import { import { debug, DROPBOX_APP_KEY, - GOOGLE_API_KEY, - GOOGLE_CLIENT_ID, noteid, noteurl, urlpath, @@ -569,9 +567,9 @@ var previousFocusOnEditor = null function checkEditorStyle () { var desireHeight = editorInstance.statusBar ? (ui.area.edit.height() - editorInstance.statusBar.outerHeight()) : ui.area.edit.height() if (editorInstance.toolBar) { - desireHeight = desireHeight - editorInstance.toolBar.outerHeight() + desireHeight = desireHeight - editorInstance.toolBar.outerHeight() } - // set editor height and min height based on scrollbar style and mode + // set editor height and min height based on scrollbar style and mode var scrollbarStyle = editor.getOption('scrollbarStyle') if (scrollbarStyle === 'overlay' || appState.currentMode === modeType.both) { ui.area.codemirrorScroll.css('height', desireHeight + 'px') |