Skip to content

Commit dd1dbf8

Browse files
authored
v1.5.6
1 parent bb65349 commit dd1dbf8

4 files changed

Lines changed: 11 additions & 3 deletions

File tree

devlog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
NEKO Code Editor Devlog
22
|-----------------------|
33

4+
Bug Fix v1.5.6 03/27/2023:
5+
- Fixed the "Clear Data" feature on dashboard to clear data properly
6+
47
Update/Bug Fix v1.5.5 03/24/2023:
58
- Fixed "Import Project" Feature
69
- Updated indexedDB to use the latest version of IDB Keyval

src/scripts/dashboard.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import { get, set, del, clear, keys } from '../scripts/db.js';
22

3+
async function clearData() {
4+
const dbs = await window.indexedDB.databases();
5+
dbs.forEach(db => { window.indexedDB.deleteDatabase(db.name) })
6+
}
7+
38
var DEV = false;
49

510
window.onerror = function (msg, url, linenumber) {
@@ -514,8 +519,8 @@ document.querySelector(".btn-clear").onclick = function() {
514519
if (uinput === true) {
515520
var accountdata = JSON.parse(window.localStorage.getItem(window.localStorage.getItem('li')));
516521
accountdata.editor = "";
522+
clearData();
517523
window.localStorage.setItem(window.localStorage.getItem('li'), JSON.stringify(accountdata));
518-
clear();
519524
window.location.reload();
520525
} else {
521526
return;

src/views/dashboard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<button class="btn" data-title="Account Settings" id="account">
3333
Account Settings
3434
</button>
35-
<p id="ver">v1.5.5</p>
35+
<p id="ver">v1.5.6</p>
3636
</div>
3737

3838
<div class="projects-container">

src/views/editor.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
</label>
105105
</div>
106106
<div id="settingsMenu"></div>
107-
<i id="ver" style="font-size: 2rem;">v1.5.5</i>
107+
<i id="ver" style="font-size: 2rem;">v1.5.6</i>
108108
<iframe frameborder="0" id="iframe"></iframe>
109109
<div style="display: none;" class="tocl tocl-4">
110110
<p class="toclp">Console</p>

0 commit comments

Comments
 (0)