chore: hasOwn polyfill

This commit is contained in:
Tristan Yang
2025-02-13 12:03:54 +08:00
parent 9a798849d4
commit d5d3a67a4d
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "vocechat-web",
"version": "0.9.1",
"version": "0.9.2",
"homepage": "https://voce.chat",
"dependencies": {
"@metamask/onboarding": "^1.0.1",
+3 -1
View File
@@ -9,10 +9,12 @@ if (!isSupported) {
let place = ratio <= 0 && centerIfNeeded ? "center" : "nearest";
el.scrollIntoView({
block: place,
inline: place
inline: place,
});
}
this.disconnect();
}).observe(this);
};
}
// hasown API
"hasOwn" in Object || (Object.hasOwn = Object.call.bind(Object.hasOwnProperty));