feat: update virtuallist
parent
0d34f45895
commit
ab80874fa5
|
@ -1 +1 @@
|
||||||
Subproject commit 83ab203d1ab9861132f6efd1e74015507c0e45f6
|
Subproject commit 955716e4e9533bc628c651d6ba6c8d1eb9b21a9d
|
|
@ -0,0 +1,19 @@
|
||||||
|
// Firefox has low performance of map.
|
||||||
|
class CacheMap {
|
||||||
|
maps;
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
this.maps = {};
|
||||||
|
this.maps.prototype = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
set(key, value) {
|
||||||
|
this.maps[key] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
get(key) {
|
||||||
|
return this.maps[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default CacheMap;
|
|
@ -0,0 +1,3 @@
|
||||||
|
const isFF = typeof navigator === 'object' && /Firefox/i.test(navigator.userAgent);
|
||||||
|
|
||||||
|
export default isFF;
|
Loading…
Reference in New Issue