diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-03-11 18:15:55 +0100 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2022-03-11 18:15:55 +0100 |
| commit | 52b79f4b5ffce7679fa5fcceeb80d615ad0cdf16 (patch) | |
| tree | affeaf0853a067abe7590dac077c4f1c40f82945 /webAO/utils/getAnimLength.js | |
| parent | 7c5fac67edf4e265176d57b714bd21cdc8c8aa7d (diff) | |
add apng preanims
Diffstat (limited to 'webAO/utils/getAnimLength.js')
| -rw-r--r-- | webAO/utils/getAnimLength.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webAO/utils/getAnimLength.js b/webAO/utils/getAnimLength.js index 5b24e84..1441548 100644 --- a/webAO/utils/getAnimLength.js +++ b/webAO/utils/getAnimLength.js @@ -1,6 +1,6 @@ import calculatorHandler from './calculatorHandler'; import fileExists from './fileExists.js'; -import requestBuffer from '../services/request.js'; +import {requestBuffer} from '../services/request.js'; /** * Gets animation length. If the animation cannot be found, it will * silently fail and return 0 instead. @@ -8,7 +8,7 @@ import requestBuffer from '../services/request.js'; */ const getAnimLength = async (url) => { - const extensions = ['.gif', '.webp']; + const extensions = ['.gif', '.webp', '.apng']; for (const extension of extensions) { const urlWithExtension = url + extension; const exists = await fileExists(urlWithExtension); |
