Wie benutze ich Async/warte mit autoupdater.CheckforUpdates () von Electron-Updater?JavaScript

Javascript-Forum
Anonymous
 Wie benutze ich Async/warte mit autoupdater.CheckforUpdates () von Electron-Updater?

Post by Anonymous »

Ich möchte Async -Warte -Mechanismus für die Funktion der achoupdater im Elektronen verwenden. Elektronen?

Code: Select all

import {  autoUpdater } from 'electron';

private _checkForUpdates = async () => {
let feedUrl = '';
...
...
try {
feedUrl = await this._getFeedUrl();
this.autoUpdater.setFeedURL({ url: feedUrl });
this.autoUpdater.checkForUpdates();
...
...
} catch (e) {
...
}
};

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post