mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
plugins: pass electron app to unload hook
This commit is contained in:
parent
f4474e747d
commit
a667205ad2
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
const { dialog } = require('electron');
|
||||
const { app, dialog } = require('electron');
|
||||
const { homedir } = require('os');
|
||||
const { resolve, basename } = require('path');
|
||||
const { writeFileSync } = require('fs');
|
||||
|
|
@ -117,7 +117,7 @@ function getPluginVersions () {
|
|||
function clearCache (mod) {
|
||||
// trigger unload hooks
|
||||
modules.forEach((mod) => {
|
||||
if (mod.onUnload) mod.onUnload();
|
||||
if (mod.onUnload) mod.onUnload(app);
|
||||
});
|
||||
|
||||
// clear require cache
|
||||
|
|
|
|||
Loading…
Reference in a new issue