🐛 Fixed error on Download feed

This commit is contained in:
Liyas Thomas
2020-01-22 12:47:09 +05:30
parent ea7feee840
commit 860993663f
3 changed files with 11 additions and 11 deletions

View File

@@ -59,13 +59,12 @@ export default {
methods: {
deleteFeed(feed) {
fb.deleteFeed(feed.id);
this.$toast.error(this.$t("deleted"), {
icon: "delete"
});
},
saveFeed(feed) {
const dataToWrite = JSON.stringify(
eval("(" + feed.message + ")"),
null,
2
);
const dataToWrite = JSON.stringify(feed.message, null, 2);
const file = new Blob([dataToWrite], { type: "application/json" });
const a = document.createElement("a"),
url = URL.createObjectURL(file);