From 20622db73c5c2a56777944bb06f32a21bf2e763f Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 30 Jun 2018 13:51:09 -0400 Subject: [PATCH] isSelfHost --- src/abstractions/platformUtils.service.ts | 1 + src/electron/services/electronPlatformUtils.service.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/abstractions/platformUtils.service.ts b/src/abstractions/platformUtils.service.ts index 98eb7e349a..debb19f6ae 100644 --- a/src/abstractions/platformUtils.service.ts +++ b/src/abstractions/platformUtils.service.ts @@ -25,5 +25,6 @@ export abstract class PlatformUtilsService { showDialog: (text: string, title?: string, confirmText?: string, cancelText?: string, type?: string) => Promise; isDev: () => boolean; + isSelfHost: () => boolean; copyToClipboard: (text: string, options?: any) => void; } diff --git a/src/electron/services/electronPlatformUtils.service.ts b/src/electron/services/electronPlatformUtils.service.ts index 04d8669b2f..dcd0224816 100644 --- a/src/electron/services/electronPlatformUtils.service.ts +++ b/src/electron/services/electronPlatformUtils.service.ts @@ -170,6 +170,10 @@ export class ElectronPlatformUtilsService implements PlatformUtilsService { return isDev(); } + isSelfHost(): boolean { + return false; + } + copyToClipboard(text: string, options?: any): void { const type = options ? options.type : null; clipboard.writeText(text, type);