From 9df52d660feb722404be00a50f3c8a612bec1c15 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 Aug 2021 14:42:53 +0200 Subject: Migrate client to eslint --- client/src/root-helpers/peertube-web-storage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/root-helpers/peertube-web-storage.ts') diff --git a/client/src/root-helpers/peertube-web-storage.ts b/client/src/root-helpers/peertube-web-storage.ts index d4cad8a20..68a2462de 100644 --- a/client/src/root-helpers/peertube-web-storage.ts +++ b/client/src/root-helpers/peertube-web-storage.ts @@ -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] } -- cgit v1.2.3