Skip to content

Commit

Permalink
change cleardb method
Browse files Browse the repository at this point in the history
  • Loading branch information
ThejasKiranPS committed Jun 16, 2021
1 parent a4072d2 commit 33efe5e
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions settings/settings.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,5 @@
function cleardb() {
let branches=[
'cse',
'me',
'eee',
'ece',
'ce',
'ae',
'be',
'pe',
'che'
];
let dbName='';
let results={};
branches.forEach((branch) => {
for (let s=1;s<=8;s++) {
results={}
results[`${branch}s${s}`]={};
chrome.storage.sync.set(results,() => {
chrome.storage.sync.get(`${branch}s${s}`,(datat) => {
console.log(datat);
})
});
}
})
chrome.storage.sync.clear();
document.querySelector('.feedback').classList.toggle('no-display');
}
document.querySelector('.cleardb').onclick = cleardb;
Expand Down

0 comments on commit 33efe5e

Please sign in to comment.