Skip to content

Commit

Permalink
fix(cleaner): side effects
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed Feb 9, 2022
1 parent 0a7ced8 commit f0e84d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions addons/cleaner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ module.exports = function (commas) {
if (commas.app.isMainProcess()) {

const path = require('path')
const { ipcMain } = require('electron')

ipcMain.handle('get-cache-size', event => {
commas.ipcMain.handle('get-cache-size', event => {
return event.sender.session.getCacheSize()
})

ipcMain.handle('clear-cache', event => {
commas.ipcMain.handle('clear-cache', event => {
event.sender.session.clearCache()
})

Expand Down

0 comments on commit f0e84d3

Please sign in to comment.