From 0a3e8460dc52dba4030428e6a7e5b36d11912f4e Mon Sep 17 00:00:00 2001 From: Robinson <75579375+iamrbn@users.noreply.github.com> Date: Fri, 15 Nov 2024 12:25:37 +0100 Subject: [PATCH] module version 1.1 --- redditModule.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/redditModule.js b/redditModule.js index d847730..ded2194 100644 --- a/redditModule.js +++ b/redditModule.js @@ -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;