Skip to content

Commit

Permalink
[FIX] making codefactor happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabhg71 committed Oct 19, 2023
1 parent f9b3392 commit 1714cbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion www/js/lib/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ function test (callback) {
if (typeof Storage !== 'undefined') {
try {
// If localStorage is really supported, this won't produce an error
// eslint-disable-next-line no-unused-vars
var item = window.localStorage.length;
assetsCache.capability = assetsCache.capability + '|localStorage';
} catch (err) {
Expand Down Expand Up @@ -199,6 +200,7 @@ function idxDB (keyOrCommand, valueOrCallback, callback) {
// Create the schema
open.onupgradeneeded = function () {
var db = open.result;
// eslint-disable-next-line no-unused-vars
var store = db.createObjectStore(objStore);
};

Expand Down Expand Up @@ -955,7 +957,7 @@ export default {
CACHEAPI: CACHEAPI,
test: test,
count: count,
idxDB: idxDB,
idxDB: idxDB, // only this is used in fileSystem.js
cacheAPI: cacheAPI,
setArticle: setArticle,
getArticle: getArticle,
Expand Down
1 change: 0 additions & 1 deletion www/js/lib/fileSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ async function handleFolderDropViaFileSystemAPI (packet) {
// Only runs when browser support File System API
const fileInfo = packet.dataTransfer.items[0]
const fileOrDirHandle = await fileInfo.getAsFileSystemHandle();
console.log(fileOrDirHandle, fileInfo);
if (fileOrDirHandle.kind === 'file') {
/** @type FileSystemHandlers */
const FSHandler = {
Expand Down

0 comments on commit 1714cbb

Please sign in to comment.