From eeefc1152d84338d959edc89143c62e67d71be10 Mon Sep 17 00:00:00 2001 From: Roel Walraven Date: Thu, 4 Aug 2016 18:35:28 +0200 Subject: [PATCH] Adds documentation for checkUpdate method --- mock/LightDMMock.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mock/LightDMMock.js b/mock/LightDMMock.js index f1f693a..cf7c41f 100644 --- a/mock/LightDMMock.js +++ b/mock/LightDMMock.js @@ -458,6 +458,13 @@ window.logCall = function(name, args) { return window.console.info("[lightdm." + name + "] called with 0 arguments"); }; +/** + * global helper checkForUpdate + * compares curentVersion with the tag name of GitHub's latest release and + * prompts the user to download a new version if it is available. + * + * @param {String} currentVersion [the current tag version] + */ window.checkForUpdate = function(currentVersion) { var request = new XMLHttpRequest();