A fully free and unlocked alternative to Franz.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
650 B

import SingleInstance from "single-instance";
import {app} from "electron";
import Meta from "./Meta";
import Application from "./Application";
// Fix for twitter (and others) in webviews - pending https://github.com/electron/electron/issues/25469
app.commandLine.appendSwitch('disable-features', 'CrossOriginOpenerPolicy');
const application = new Application(Meta.isDevMode());
// Check if application is already running
const lock = new SingleInstance('tabs-app');
lock.lock().then(() => {
app.on('ready', () => {
}).catch(err => {