|
@@ -1,11 +1,12 @@
|
|
-import {Command, Session} from "../session";
|
|
|
|
|
|
+import {Command} from "../session";
|
|
import {CommandHandler} from "./base";
|
|
import {CommandHandler} from "./base";
|
|
import {b64toBlob} from "../utils";
|
|
import {b64toBlob} from "../utils";
|
|
|
|
|
|
export class DownloadHandler implements CommandHandler {
|
|
export class DownloadHandler implements CommandHandler {
|
|
accept_command: string[] = ['download'];
|
|
accept_command: string[] = ['download'];
|
|
|
|
|
|
- constructor() {}
|
|
|
|
|
|
+ constructor() {
|
|
|
|
+ }
|
|
|
|
|
|
handle_message(msg: Command) {
|
|
handle_message(msg: Command) {
|
|
let blob = b64toBlob(msg.spec.content);
|
|
let blob = b64toBlob(msg.spec.content);
|