mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix ERR_FAILED for splash screen on windows sometimes (#5539)
This commit is contained in:
1 parent
ec1df4717d
commit
06db3119a6
8 files changed
+41
-92
No files matched your search
@@ -1,27 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import registerFileProtocolInjectable from "../../electron-app/features/register-file-protocol.injectable";
|
||||
import staticFilesDirectoryInjectable from "../../../common/vars/static-files-directory.injectable";
|
||||
import { beforeApplicationIsLoadingInjectionToken } from "../runnable-tokens/before-application-is-loading-injection-token";
|
||||
|
||||
const setupFileProtocolInjectable = getInjectable({
|
||||
id: "setup-file-protocol",
|
||||
|
||||
instantiate: (di) => {
|
||||
const registerFileProtocol = di.inject(registerFileProtocolInjectable);
|
||||
const staticFilesDirectory = di.inject(staticFilesDirectoryInjectable);
|
||||
|
||||
return {
|
||||
run: () => {
|
||||
registerFileProtocol("static", staticFilesDirectory);
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
injectionToken: beforeApplicationIsLoadingInjectionToken,
|
||||
});
|
||||
|
||||
export default setupFileProtocolInjectable;
|
||||
Reference in new issue
Block a user