You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
551 B
JavaScript

function asyncInitialize() {
updateSpecialReg()
}
function updateSpecialReg() {
$http.download({
showsProgress: false,
url: "https://raw.githubusercontent.com/Fndroid/specialReg/master/specialReg.js?t=" + new Date().getTime()
}).then(resp => {
if (resp.response.statusCode === 200) {
let success = $file.write({
data: resp.data,
path: "scripts/videoReg.js"
});
}
})
}
module.exports = {
asyncInitialize: asyncInitialize
}