]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/root-helpers/peertube-web-storage.ts
Update client dependencies
[github/Chocobozzz/PeerTube.git] / client / src / root-helpers / peertube-web-storage.ts
index d4cad8a20aa74f6c25ab24ede76117292c590691..68a2462de04837d5fa14ec080daa8397d4e5b87f 100644 (file)
@@ -5,7 +5,7 @@ const valuesMap = new Map()
 function proxify (instance: MemoryStorage) {
   return new Proxy(instance, {
     set: function (obj, prop: string | symbol, value) {
-      if (MemoryStorage.prototype.hasOwnProperty(prop)) {
+      if (Object.prototype.hasOwnProperty.call(MemoryStorage, prop)) {
         // FIXME: symbol typing issue https://github.com/microsoft/TypeScript/issues/1863
         instance[prop as any] = value
       } else {
@@ -14,7 +14,7 @@ function proxify (instance: MemoryStorage) {
       return true
     },
     get: function (target, name: string | symbol | number) {
-      if (MemoryStorage.prototype.hasOwnProperty(name)) {
+      if (Object.prototype.hasOwnProperty.call(MemoryStorage, name)) {
         // FIXME: symbol typing issue https://github.com/microsoft/TypeScript/issues/1863
         return instance[name as any]
       }