mirror of
https://github.com/oliverschwendener/ueli.git
synced 2024-07-07 10:26:29 +03:00
Fixed typos
This commit is contained in:
parent
a28e0baf07
commit
b756127ede
|
@ -26,4 +26,4 @@ We accept pull requests only in English. When a pull request is posted in a lang
|
|||
|
||||
### Coding style
|
||||
|
||||
Please use [eslint](.eslintrc.json) to verify that your contribution matches our coding style. Additionally we use [prettier](.prettierrc) to auto-format the code. All pull requests that don't match the coding style won't be accepted.
|
||||
Please use [eslint](.eslintrc.json) to verify that your contribution matches our coding style. Additionally, we use [prettier](.prettierrc) to auto-format the code. All pull requests that don't match the coding style won't be accepted.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* Offers methots to execute AppleScript commands.
|
||||
* Offers methods to execute AppleScript commands.
|
||||
*/
|
||||
export interface AppleScriptUtility {
|
||||
/**
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
import type { App } from "electron";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { SingleInstaneLockModule } from "./SingleInstanceLockModule";
|
||||
import { SingleInstanceLockModule } from "./SingleInstanceLockModule";
|
||||
|
||||
describe(SingleInstaneLockModule, () => {
|
||||
describe(SingleInstanceLockModule, () => {
|
||||
it("should request single instance lock", () => {
|
||||
const requestSingleInstanceLockMock = vi.fn().mockReturnValue(true);
|
||||
const quickMock = vi.fn();
|
||||
|
||||
SingleInstaneLockModule.bootstrap(<App>{
|
||||
SingleInstanceLockModule.bootstrap(<App>{
|
||||
requestSingleInstanceLock: () => requestSingleInstanceLockMock(),
|
||||
quit: () => quickMock(),
|
||||
});
|
||||
|
@ -21,7 +21,7 @@ describe(SingleInstaneLockModule, () => {
|
|||
|
||||
const quickMock = vi.fn();
|
||||
|
||||
SingleInstaneLockModule.bootstrap(<App>{
|
||||
SingleInstanceLockModule.bootstrap(<App>{
|
||||
requestSingleInstanceLock: () => requestSingleInstanceLockMock(),
|
||||
quit: () => quickMock(),
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import type { App } from "electron";
|
||||
|
||||
export class SingleInstaneLockModule {
|
||||
export class SingleInstanceLockModule {
|
||||
public static bootstrap(app: App) {
|
||||
if (!app.requestSingleInstanceLock()) {
|
||||
console.log("Quitting application. Reason: another instance is already running");
|
||||
|
|
|
@ -7,7 +7,7 @@ import * as Extensions from "./Extensions";
|
|||
(async () => {
|
||||
await Electron.app.whenReady();
|
||||
|
||||
Core.SingleInstaneLockModule.bootstrap(Electron.app);
|
||||
Core.SingleInstanceLockModule.bootstrap(Electron.app);
|
||||
Core.DockModule.bootstrap(Electron.app);
|
||||
|
||||
const dependencyRegistry = Core.DependencyRegistryModule.bootstrap();
|
||||
|
|
Loading…
Reference in New Issue
Block a user