Skip to content

Commit

Permalink
Remove uneccessary console.log() statements
Browse files Browse the repository at this point in the history
  • Loading branch information
phibr0 committed Jul 26, 2021
1 parent 8ae881d commit 3a9fd6a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-dictionary-plugin",
"name": "Dictionary",
"version": "2.12.1",
"version": "2.12.2",
"minAppVersion": "0.12.11",
"description": "This is a simple dictionary for the Obsidian Note-Taking Tool.",
"author": "phibr0",
Expand Down
3 changes: 0 additions & 3 deletions src/apiManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,10 @@ export default class APIManager {
if (settings.useCaching) {
//Get any cached Definitions
const cachedDefinition = cache.cachedDefinitions.find((c) => { return c.content.word.toLowerCase() == query.toLowerCase() && c.lang == settings.defaultLanguage && c.api == api.name });
console.log(cachedDefinition)
//If cachedDefiniton exists return it as a Promise
if (cachedDefinition) {
console.log("cache")
return new Promise((resolve) => resolve(cachedDefinition.content));
} else {
console.log("network")
//If it doesnt exist request a new Definition
const result = api.requestDefinitions(query, settings.defaultLanguage);

Expand Down

0 comments on commit 3a9fd6a

Please sign in to comment.