🍻 Chore: add random staging id for staging element

This commit is contained in:
Cell
2024-04-22 11:31:11 +08:00
parent 300bbe9a44
commit 1217640d40
+1
View File
@@ -63,6 +63,7 @@ export default class Util {
getStagingDOM() {
const stagingElement = document.createElement('div')
stagingElement.style.display = 'none';
stagingElement.dataset.stagingId = Math.random().toString(36).slice(2);
document.body.appendChild(stagingElement);
return {