From 87e1d4e34c3942c45d6256284a69c71198924e92 Mon Sep 17 00:00:00 2001 From: veggiecan0419 <137440114+veggiecan0419@users.noreply.github.com> Date: Thu, 29 Jun 2023 20:04:55 +0300 Subject: [PATCH] Fixed errors --- extensions/veggiecan/LongmanDictionary.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/veggiecan/LongmanDictionary.js b/extensions/veggiecan/LongmanDictionary.js index 577dd425d9..ac258b3150 100644 --- a/extensions/veggiecan/LongmanDictionary.js +++ b/extensions/veggiecan/LongmanDictionary.js @@ -2,7 +2,7 @@ 'use strict'; //The icon is this logo (https://www.ldoceonline.com/external/images/logo_home_smartphone.svg?version=1.2.61) from https://www.ldoceonline.com/, coloured black in the TurboWarp costume editor //The id DOES relate to the username, doesn't it? -const longmamlogo ='data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSI2NS43NjgwMyIgaGVpZ2h0PSI2Ni4zMTY2MSIgdmlld0JveD0iMCwwLDY1Ljc2ODAzLDY2LjMxNjYxIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjA3LjExNTk4LC0xNDYuODQxNjkpIj48ZyBkYXRhLXBhcGVyLWRhdGE9InsmcXVvdDtpc1BhaW50aW5nTGF5ZXImcXVvdDs6dHJ1ZX0iIGZpbGwtcnVsZT0ibm9uemVybyIgc3Ryb2tlPSJub25lIiBzdHJva2UtbGluZWNhcD0iYnV0dCIgc3Ryb2tlLWxpbmVqb2luPSJtaXRlciIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2UtZGFzaGFycmF5PSIiIHN0cm9rZS1kYXNob2Zmc2V0PSIwIiBzdHlsZT0ibWl4LWJsZW5kLW1vZGU6IG5vcm1hbCI+PHBhdGggZD0i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NmMtMi4xODMsMCAtNC4yODEsMS4wNTM5OSAtNC4yODEsMS4wNTM5OXoiLz48cGF0aCBkPSJNMjMyLjUxNjg0LDE1My43MDc4OGMxLjA4NSwtMS40OTUxNyAxLjcyMSwtNC4wNDcyNSAtMC4yNjksLTUuNzIzNzRjNC4zNDYsLTEuMjUyNzcgNi45MzgsLTEuNTc1NjUgMTIuMDY2LC0wLjQ2MTU1YzAuNTc0LDAuNzk4MDEgMC44NzgsMS44NzUyNyAwLjczNSwyLjkyMjQ3YzUuNTc4LDIuMDgxOCA5LjQyNSwwLjQxMjA5IDExLjczNSwtMC45ODYxMmMwLDIuNDUyMiAtMi43MjQsNy4xNzQzMiAtNy45NDIsNy4xNzQzMmMtMy4wMTksMCAtNS41NTksLTEuMzk2MjcgLTUuNTU5LC0xLjM5NjI3YzAuNDU5LC0wLjYzNzA1IDAuNjkyLC0xLjUxMzYgMC40NDMsLTIuNTU4ODZjLTQuMTQ5LC0xLjI3NDEgLTguMDY5LC0wLjUwMTMgLTExLjIwOSwxLjAyOTc1eiIvPjwvZz48L2c+PC9nPjwvc3ZnPg=='; class LongmanDictionary { getInfo() { @@ -32,7 +32,7 @@ const longmamlogo ='data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPS define(args) { const word = args.word; const url = `https://www.ldoceonline.com/dictionary/${word}`; - return fetch(url) + return Scratch.fetch(url) .then(response => response.text()) .then(text => { const parser = new DOMParser();