refac
This commit is contained in:
@@ -936,11 +936,11 @@
|
||||
|
||||
const onHistoryChange = (history) => {
|
||||
if (history) {
|
||||
cancelAnimationFrame(contentsRAF);
|
||||
contentsRAF = requestAnimationFrame(() => {
|
||||
clearTimeout(contentsRAF);
|
||||
contentsRAF = setTimeout(() => {
|
||||
getContents();
|
||||
contentsRAF = null;
|
||||
});
|
||||
}, 0);
|
||||
} else {
|
||||
artifactContents.set([]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user