Desktop

You can build desktop applications for Windows, macOS, linux. We support all these OS using Electron.

Installation

yarn add @dlghq/dialog-desktop-sdk
yarn add --develop electron

Usage

Create main.js and paste following code:

const { createApp } = require('@dlghq/dialog-desktop-sdk');

createApp({
  url: 'https://app.mymessenger.im',
  help: 'https://mymessenger.im/help',
  autoUpdateURL: 'https://desktop.mymessenger.im',
  title: 'dialog',
  showSaveAs: true
});

Configuration

class ElectronConfiguration
url: string

Web app url.

title: string

Application title.

help: string

Link to your application help-page.

autoUpdateURL: string

Electron update server url.

showSaveAs: boolean

Should application show “save as” dialog when user saves file.