Skip to content

Commit

Permalink
feat: add context menu with default actions
Browse files Browse the repository at this point in the history
This commit closes #96
  • Loading branch information
4gray committed Jan 7, 2022
1 parent 444fd2a commit 44e76e0
Show file tree
Hide file tree
Showing 3 changed files with 322 additions and 269 deletions.
2 changes: 2 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ import * as path from 'path';
import * as url from 'url';
import { Api } from './api';
import { AppMenu } from './menu';
const contextMenu = require('electron-context-menu');

let win: BrowserWindow = null;
const args = process.argv.slice(1),
serve = args.some((val) => val === '--serve');

const api = new Api();
contextMenu();

function createWindow(): BrowserWindow {
// Create the browser window.
Expand Down
Loading

0 comments on commit 44e76e0

Please sign in to comment.