Skip to content

Commit d5888b6

Browse files
committed
Removed console logs, added error handler to search and slight css mod to search dialog
1 parent 1d0318e commit d5888b6

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

src/CodeEditor/CustomDialog/newDialog.css

+2-4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
top: 0px;
1919
z-index: 10;
2020
font-size: .8em;
21+
font-weight: bold;
2122
}
2223

2324
.CodeMirror-advanced-dialog input {
@@ -31,6 +32,7 @@
3132

3233
.CodeMirror-advanced-dialog button {
3334
font-size: 70%;
35+
font-weight: bold;
3436
}
3537

3638
.CodeMirror-advanced-dialog .row {
@@ -57,7 +59,3 @@
5759
background-color: inherit;
5860
color: inherit;
5961
}
60-
61-
.CodeMirror-find-label .CodeMirror-search-count {
62-
text-shadow: white 0 0 0.2em;
63-
}

src/CodeEditor/CustomSearch/newSearch.js

+2
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
}
104104

105105
function parseQuery(query) {
106+
if (query === null) return;
106107
const isRE = query.match(/^\/(.*)\/([a-z]*)$/);
107108
if (isRE) {
108109
try { query = new RegExp(isRE[1], isRE[2].indexOf("i") == -1 ? "" : "i"); }
@@ -116,6 +117,7 @@
116117
}
117118

118119
function startSearch(cm, state, query) {
120+
if (query === null) return;
119121
state.queryText = query;
120122
state.query = parseQuery(query);
121123
cm.removeOverlay(state.overlay, queryCaseInsensitive(state.query));

src/CodeEditor/Editor.svelte

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
2727
// creates a new tab when a new file is opened
2828
function addTab(newFile: NewFile): void {
29-
console.log('newfile bein opened')
3029
let duplicate: boolean = false;
3130
let focusTabId: number = newFile.tabId;
3231
$openTabs.map((tab) => {

src/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ const createWindow = (exports.createWindow = () => {
9898
* SvelteStorm
9999
* ==================================================
100100
*/
101-
console.log('new win beinc created')
102101
newWindow = new BrowserWindow({
103102
width: 1400,
104103
height: 1300,

0 commit comments

Comments
 (0)