diff --git a/wowup-electron/package.json b/wowup-electron/package.json index b0423dd8..9aba7c26 100644 --- a/wowup-electron/package.json +++ b/wowup-electron/package.json @@ -1,7 +1,7 @@ { "name": "wowup", "productName": "WowUp", - "version": "2.0.0-beta.11", + "version": "2.0.0-beta.12", "description": "Word of Warcraft addon updater", "homepage": "https://wowup.io", "author": { diff --git a/wowup-electron/src/app/services/electron/electron.service.ts b/wowup-electron/src/app/services/electron/electron.service.ts index e68e22d5..bfd7c020 100644 --- a/wowup-electron/src/app/services/electron/electron.service.ts +++ b/wowup-electron/src/app/services/electron/electron.service.ts @@ -195,6 +195,18 @@ export class ElectronService { return new Notification(title, options); } + public isHandlingProtocol(protocol: string): boolean { + return this.remote.app.isDefaultProtocolClient(protocol); + } + + public setHandleProtocol(protocol: string, enable: boolean) { + if (enable) { + return this.remote.app.setAsDefaultProtocolClient(protocol); + } else { + return this.remote.app.removeAsDefaultProtocolClient(protocol); + } + } + public async sendIpcValueMessage(channel: string, value: TIN): Promise { const request: ValueRequest = { value, diff --git a/wowup-electron/src/environments/environment.prod.ts b/wowup-electron/src/environments/environment.prod.ts index 05986723..64b3269f 100644 --- a/wowup-electron/src/environments/environment.prod.ts +++ b/wowup-electron/src/environments/environment.prod.ts @@ -6,14 +6,7 @@ export const AppConfig = { rollbarAccessKey: "d01c11314a064572b11acee18d880650", googleAnalyticsId: "UA-92563227-4", wowupRepositoryUrl: "https://github.com/WowUp/WowUp", - firebaseConfig: { - apiKey: "AIzaSyBvZ1_ldinsxeh-iRI53REm8j1CPcQuIBw", - authDomain: "wowup-893c6.firebaseapp.com", - databaseURL: "https://wowup-893c6.firebaseio.com", - projectId: "wowup-893c6", - storageBucket: "wowup-893c6.appspot.com", - messagingSenderId: "914166112595", - appId: "1:914166112595:web:cdb02d231e5f9802b541a6", - measurementId: "G-V646RWJ5NK", + azure: { + applicationInsightsKey: "4a53e8d9-796c-4f80-b1a6-9a058374dd6d", }, };