MCPcopy
hub / github.com/GooseMod/OpenAsar / checkForUpdates

Method checkForUpdates

src/updater/moduleUpdater.js:80–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 }
79
80 checkForUpdates() {
81 req(this.url).then(([ r, b ]) => {
82 if (r.statusCode === 204) return this.emit('update-not-available');
83
84 this.emit('update-manually', b);
85 });
86 }
87
88 quitAndInstall() {
89 app.relaunch();

Callers 2

checkFunction · 0.80
moduleUpdater.jsFile · 0.80

Calls 1

reqFunction · 0.85

Tested by

no test coverage detected