Skip to content

Commit d4d0d7d

Browse files
committed
fix bugs
1 parent 7b5da1f commit d4d0d7d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/content_scripts/components/Ugoira.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export default {
185185
*/
186186
let button = this.generatorButtons[type];
187187
188-
if (button.status === 0 || buttons.status === 4) {
188+
if (button.status === 0 || button.status === 4) {
189189
/**
190190
* Create the generator with the type argument
191191
*/
@@ -221,8 +221,9 @@ export default {
221221
* Update status, text and style type
222222
*/
223223
button.status = 1;
224-
button.text = 'Save GIF';
224+
button.text = 'Save ' + type.toUpperCase();
225225
button.type = 'success';
226+
button.blob = blob;
226227
227228
this.saveFile(blob, type);
228229
});
@@ -232,7 +233,7 @@ export default {
232233
*/
233234
generator.generate();
234235
} else if (button.status === 1) {
235-
this.saveFile(blob, type);
236+
this.saveFile(button.blob, type);
236237
} else if (button.status === 2) {
237238
alert('Generating, please wait.');
238239
}

0 commit comments

Comments
 (0)