fix: add missing newline at end of multiple package.json files and README.md

This commit is contained in:
Harvey Zack committed 2025-08-03 11:54:36 +08:00
1 parent 05ce97c6fd
commit 46ad399b2f
3 files changed
+2 -4

No files matched your search

+1 -1
View File
@@ -144,7 +144,7 @@ We accept donations through these channels:
![QQ Group](./images/qqgroup.png) ![QQ Group](./images/qqgroup.png)
[![Powered by DartNode](https://dartnode.com/branding/DN-Open-Source-sm.png)](https://dartnode.com "Powered by DartNode - Free VPS for Open Source") [![Powered by DartNode](https://dartnode.com/branding/DN-Open-Source-sm.png)](https://dartnode.com 'Powered by DartNode - Free VPS for Open Source')
## License ## License
@@ -12,7 +12,6 @@ function create({ url, width, number }, callback) {
canvas.width = width * 10; canvas.width = width * 10;
canvas.height = height * Math.ceil(number / 10); canvas.height = height * Math.ceil(number / 10);
let loadedCount = 0;
let blobUrl = null; let blobUrl = null;
function seekAndDraw(index) { function seekAndDraw(index) {
@@ -31,7 +30,6 @@ function create({ url, width, number }, callback) {
video.onseeked = () => { video.onseeked = () => {
ctx.drawImage(video, (index % 10) * width, Math.floor(index / 10) * height, width, height); ctx.drawImage(video, (index % 10) * width, Math.floor(index / 10) * height, width, height);
loadedCount++;
seekAndDraw(index + 1); seekAndDraw(index + 1);
}; };
} }
@@ -32,7 +32,7 @@ export default function artplayerPluginDanmukuMask(option = {}) {
try { try {
await tf.setBackend('webgl'); await tf.setBackend('webgl');
} catch (error) { } catch (error) {
console.warn('WebGL backend not available, falling back to CPU'); console.warn('WebGL backend not available, falling back to CPU', error.message);
await tf.setBackend('cpu'); await tf.setBackend('cpu');
} }
} }