Add comment clarifying SVGA version support

This commit is contained in:
ema
2025-07-05 06:55:48 +08:00
parent b3570d1215
commit 5e459e35e5

View File

@@ -23,7 +23,7 @@ class SvgaViewer {
*/ */
async play() { async play() {
const path = await chrome.webview.hostObjects.external.GetPath(); const path = await chrome.webview.hostObjects.external.GetPath();
const parser = new SVGA.Parser(); const parser = new SVGA.Parser(); // Only SVGA 2.x supported
// Because the path is a local file, we need to convert it to a URL format // Because the path is a local file, we need to convert it to a URL format
parser.load('https://' + path).then(svga => { parser.load('https://' + path).then(svga => {