Files
UpdaterWebLibrary/dist/index.cjs.js
2025-10-21 22:18:18 +01:00

17 lines
351 B
JavaScript

'use strict';
class Updater {
archiveURL;
feedType;
constructor(archiveURL = "/", feedType = "rss") {
this.archiveURL = archiveURL;
this.feedType = feedType;
}
async getArchive() {
const res = await fetch(`${this.archiveURL}.${this.feedType}`);
console.log(res);
}
}
module.exports = Updater;