module version 1.1

This commit is contained in:
Robinson
2024-11-15 12:25:37 +01:00
committed by GitHub
parent cd3a9ae214
commit 0a3e8460dc
+4 -2
View File
@@ -1,6 +1,6 @@
//=======================================//
//=========== START OF MODULE ===========//
//============= Version 1.0 =============//
//============= Version 1.1 =============//
// sends request to reddit-api
@@ -546,8 +546,10 @@ async function errorWidgetLS(type, code){
//Checks if's there an server update on GitHub available
async function updateCheck(fm, modulePath, version){
async function updateCheck(version){
fm = fm = FileManager.iCloud()
dir = fm.joinPath(fm.documentsDirectory(), 'Reddit-Widget')
modulePath = fm.joinPath(dir, 'redditModule.js')
url = 'https://raw.githubusercontent.com/iamrbn/Reddit-Widget/main/'
endpoints = ['Reddit-Widget.js', 'redditModule.js']
let uC;