mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-12-25 14:10:21 +00:00
download playlists as txt
This commit is contained in:
@@ -220,6 +220,15 @@ const mixin = {
|
||||
const localSubscriptions = this.getLocalSubscriptions();
|
||||
return localSubscriptions.join(",");
|
||||
},
|
||||
download(text, filename) {
|
||||
var element = document.createElement("a");
|
||||
element.setAttribute("href", "data:text/plain;charset=utf-8," + encodeURIComponent(text));
|
||||
element.setAttribute("download", filename);
|
||||
element.style.display = "none";
|
||||
document.body.appendChild(element);
|
||||
element.click();
|
||||
document.body.removeChild(element);
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
theme() {
|
||||
|
||||
Reference in New Issue
Block a user