@xpadev-net/niconicomments 0.2.64 → 0.2.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.d.ts +1 -1
- package/dist/bundle.js +5 -5
- package/package.json +1 -1
package/dist/bundle.d.ts
CHANGED
package/dist/bundle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
niconicomments.js v0.2.
|
|
2
|
+
niconicomments.js v0.2.65
|
|
3
3
|
(c) 2021 xpadev-net https://xpadev.net
|
|
4
4
|
Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -3004,11 +3004,11 @@
|
|
|
3004
3004
|
const cache = imageCache[this.cacheKey];
|
|
3005
3005
|
if (cache) {
|
|
3006
3006
|
this.image = cache.image;
|
|
3007
|
-
setTimeout(() => {
|
|
3007
|
+
window.setTimeout(() => {
|
|
3008
3008
|
delete this.image;
|
|
3009
3009
|
}, this.comment.long * 10 + config.cacheAge);
|
|
3010
3010
|
clearTimeout(cache.timeout);
|
|
3011
|
-
cache.timeout = setTimeout(() => {
|
|
3011
|
+
cache.timeout = window.setTimeout(() => {
|
|
3012
3012
|
imageCache[this.cacheKey]?.image.destroy();
|
|
3013
3013
|
delete imageCache[this.cacheKey];
|
|
3014
3014
|
}, this.comment.long * 10 + config.cacheAge);
|
|
@@ -3026,11 +3026,11 @@
|
|
|
3026
3026
|
}
|
|
3027
3027
|
_cacheImage(image) {
|
|
3028
3028
|
this.image = image;
|
|
3029
|
-
setTimeout(() => {
|
|
3029
|
+
window.setTimeout(() => {
|
|
3030
3030
|
delete this.image;
|
|
3031
3031
|
}, this.comment.long * 10 + config.cacheAge);
|
|
3032
3032
|
imageCache[this.cacheKey] = {
|
|
3033
|
-
timeout: setTimeout(() => {
|
|
3033
|
+
timeout: window.setTimeout(() => {
|
|
3034
3034
|
delete imageCache[this.cacheKey];
|
|
3035
3035
|
}, this.comment.long * 10 + config.cacheAge),
|
|
3036
3036
|
image,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xpadev-net/niconicomments",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.65",
|
|
4
4
|
"description": "NiconiComments is a comment drawing library that is somewhat compatible with the official Nico Nico Douga player.",
|
|
5
5
|
"main": "dist/bundle.js",
|
|
6
6
|
"types": "dist/bundle.d.ts",
|