mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-25 12:45:17 +00:00
w
This commit is contained in:
parent
a51f67dbf7
commit
73bb193398
4 changed files with 4 additions and 15 deletions
|
@ -21,6 +21,7 @@ export default {
|
||||||
{ src: "~/plugins/ryd", mode: "client" },
|
{ src: "~/plugins/ryd", mode: "client" },
|
||||||
{ src: "~/plugins/thirdPartyPluginLoader", mode: "client" },
|
{ src: "~/plugins/thirdPartyPluginLoader", mode: "client" },
|
||||||
{ src: "~/plugins/language", mode: "client" },
|
{ src: "~/plugins/language", mode: "client" },
|
||||||
|
{ src: "~/plugins/update", mode: "client" },
|
||||||
],
|
],
|
||||||
generate: {
|
generate: {
|
||||||
dir: "../dist",
|
dir: "../dist",
|
||||||
|
|
|
@ -129,7 +129,7 @@ export default {
|
||||||
|
|
||||||
async install() {
|
async install() {
|
||||||
this.downloading = true;
|
this.downloading = true;
|
||||||
await this.$vuetube.update(this.update.browser_download_url).catch(() => { this.downloading = false; });
|
await this.$update(this.update.browser_download_url).catch(() => { this.downloading = false; });
|
||||||
//window.open(this.update.browser_download_url, '_blank');
|
//window.open(this.update.browser_download_url, '_blank');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,20 +140,6 @@ const module = {
|
||||||
},
|
},
|
||||||
//--- End Convert Time To Human Readable String ---//
|
//--- End Convert Time To Human Readable String ---//
|
||||||
|
|
||||||
update(url) {
|
|
||||||
return new Promise(async (resolve, reject) => {
|
|
||||||
const data = await Http.request({
|
|
||||||
method: "GET",
|
|
||||||
url: url
|
|
||||||
}).catch((err) => { reject(err); })
|
|
||||||
|
|
||||||
console.log(data)
|
|
||||||
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//--- Start ---//
|
//--- Start ---//
|
||||||
|
|
|
@ -74,5 +74,7 @@
|
||||||
|
|
||||||
<!-- Permissions -->
|
<!-- Permissions -->
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||||
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|
Loading…
Reference in a new issue