diff --git a/src/Javascript/Brain/artwork.js b/src/Javascript/Brain/artwork.js index f5ca6116..6357f2be 100644 --- a/src/Javascript/Brain/artwork.js +++ b/src/Javascript/Brain/artwork.js @@ -10,7 +10,7 @@ import * as processing from "../processing" const REJECT = () => Promise.reject("No artwork found") -export function find(prep, app) { +export function find(prep, _app) { return findUsingTags(prep) .then(a => a ? a : findUsingMusicBrainz(prep)) .then(a => a ? a : findUsingLastFm(prep)) diff --git a/src/Javascript/index.js b/src/Javascript/index.js index 0cf24be9..e90d11d5 100644 --- a/src/Javascript/index.js +++ b/src/Javascript/index.js @@ -434,7 +434,7 @@ wire.broadcastChannel = () => { // --------- wire.clipboard = () => { - app.ports.copyToClipboard.subscribe(text => { + app.ports.copyToClipboard.subscribe(async text => { // TODO: Find a better solution for this const adjustedText = (() => { if (text.startsWith("dropbox://")) { @@ -447,7 +447,7 @@ wire.clipboard = () => { } })() - copyToClipboard(copyToClipboard) + copyToClipboard(await adjustedText) }) } diff --git a/src/Library/Sources/Services/Google.elm b/src/Library/Sources/Services/Google.elm index 94a62670..76db9a08 100644 --- a/src/Library/Sources/Services/Google.elm +++ b/src/Library/Sources/Services/Google.elm @@ -17,7 +17,6 @@ import Sources.Services.Google.Marker as Marker import Sources.Services.Google.Parser as Parser import String.Path import Time -import Url