aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/recipe.ts
diff options
context:
space:
mode:
authorLibravatar muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com>2022-12-01 00:33:39 +0530
committerLibravatar GitHub <noreply@github.com>2022-11-30 19:03:39 +0000
commit6df93308d7a93cccb281f3e979668df23007ab5d (patch)
tree7cce68384707b3bec22c1b5f7b37b9be63bb1ce8 /src/webview/recipe.ts
parentfix: [#809] unable to save custom icon for any service (#811) (diff)
downloadferdium-app-6df93308d7a93cccb281f3e979668df23007ab5d.tar.gz
ferdium-app-6df93308d7a93cccb281f3e979668df23007ab5d.tar.zst
ferdium-app-6df93308d7a93cccb281f3e979668df23007ab5d.zip
chore: [#42] use noop consistently throughout (#808)
Diffstat (limited to 'src/webview/recipe.ts')
-rw-r--r--src/webview/recipe.ts4
1 files changed, 2 insertions, 2 deletions
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 @@
1/* eslint-disable global-require */ 1/* eslint-disable global-require */
2/* eslint-disable import/no-dynamic-require */ 2/* eslint-disable import/no-dynamic-require */
3/* eslint-disable import/first */ 3/* eslint-disable import/first */
4import { noop, debounce } from 'lodash';
4import { contextBridge, ipcRenderer } from 'electron'; 5import { contextBridge, ipcRenderer } from 'electron';
5import { join } from 'path'; 6import { join } from 'path';
6import { autorun, computed, makeObservable, observable } from 'mobx'; 7import { autorun, computed, makeObservable, observable } from 'mobx';
7import { pathExistsSync, readFileSync } from 'fs-extra'; 8import { pathExistsSync, readFileSync } from 'fs-extra';
8import { debounce } from 'lodash';
9import { 9import {
10 disable as disableDarkMode, 10 disable as disableDarkMode,
11 enable as enableDarkMode, 11 enable as enableDarkMode,
@@ -53,7 +53,7 @@ import Service from '../models/Service';
53// As the message API is not actually needed, we'll add this shim sendMessage 53// As the message API is not actually needed, we'll add this shim sendMessage
54// function in order for darkreader to continue working 54// function in order for darkreader to continue working
55// @ts-ignore 55// @ts-ignore
56window.chrome.runtime.sendMessage = () => {}; 56window.chrome.runtime.sendMessage = noop;
57 57
58const debug = require('../preload-safe-debug')('Ferdium:Plugin'); 58const debug = require('../preload-safe-debug')('Ferdium:Plugin');
59 59