From 6df93308d7a93cccb281f3e979668df23007ab5d Mon Sep 17 00:00:00 2001 From: muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com> Date: Thu, 1 Dec 2022 00:33:39 +0530 Subject: chore: [#42] use noop consistently throughout (#808) --- src/webview/recipe.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/webview') diff --git a/src/webview/recipe.ts b/src/webview/recipe.ts index b3a4a6b56..dc3f39401 100644 --- a/src/webview/recipe.ts +++ b/src/webview/recipe.ts @@ -1,11 +1,11 @@ /* eslint-disable global-require */ /* eslint-disable import/no-dynamic-require */ /* eslint-disable import/first */ +import { noop, debounce } from 'lodash'; import { contextBridge, ipcRenderer } from 'electron'; import { join } from 'path'; import { autorun, computed, makeObservable, observable } from 'mobx'; import { pathExistsSync, readFileSync } from 'fs-extra'; -import { debounce } from 'lodash'; import { disable as disableDarkMode, enable as enableDarkMode, @@ -53,7 +53,7 @@ import Service from '../models/Service'; // As the message API is not actually needed, we'll add this shim sendMessage // function in order for darkreader to continue working // @ts-ignore -window.chrome.runtime.sendMessage = () => {}; +window.chrome.runtime.sendMessage = noop; const debug = require('../preload-safe-debug')('Ferdium:Plugin'); -- cgit v1.2.3-54-g00ecf