diff --git a/src/helpers/pallete.js b/src/helpers/pallete.js index 2d76b52..5705b2d 100644 --- a/src/helpers/pallete.js +++ b/src/helpers/pallete.js @@ -1,10 +1,10 @@ -import * as VibrantAPI from 'node-vibrant'; +import Vibrant from 'node-vibrant'; const getPallete = async (url) => { const img = new Image(); img.crossOrigin = 'Anonymous'; img.src = `${url}?not-from-cache-please`; - const v = new VibrantAPI(img, {}); + const v = await Vibrant.from(img, {}); const palette = await v.getPalette(); // let palette = await VibrantAPI.from(url).getPalette();