mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Inject ipcRenderer into app-update-warning
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
c044d6d2c2
commit
d7824f4a89
@ -3,20 +3,21 @@
|
|||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||||
*/
|
*/
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
|
import ipcRendererInjectable from "../app-paths/get-value-from-registered-channel/ipc-renderer/ipc-renderer.injectable";
|
||||||
|
import appPublishDateInjectable from "./app-publish-date.injectable";
|
||||||
import { AppUpdateWarning } from "./app-update-warning";
|
import { AppUpdateWarning } from "./app-update-warning";
|
||||||
|
|
||||||
const appUpdateWarningInjectable = getInjectable({
|
const appUpdateWarningInjectable = getInjectable({
|
||||||
id: "app-update-warning",
|
id: "app-update-warning",
|
||||||
|
|
||||||
instantiate: () => {
|
instantiate: (di) => {
|
||||||
AppUpdateWarning.resetInstance();
|
AppUpdateWarning.resetInstance();
|
||||||
|
|
||||||
return AppUpdateWarning.createInstance({
|
return AppUpdateWarning.createInstance({
|
||||||
releaseDate: "Wed, 04 May 2022 02:35:00 +0300",
|
releaseDate: di.inject(appPublishDateInjectable),
|
||||||
|
ipcRenderer: di.inject(ipcRendererInjectable),
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
causesSideEffects: true,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export default appUpdateWarningInjectable;
|
export default appUpdateWarningInjectable;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user