Extractor.watch()
This commit is contained in:
		| @ -1,8 +1,15 @@ | ||||
| import { logger } from "./common"; | ||||
| import { Actions } from "../common"; | ||||
| import { messageSubscribers } from "./messaging"; | ||||
|  | ||||
| export class Caches { | ||||
|     private _state: string = ""; | ||||
|     constructor() { } | ||||
|     constructor() { | ||||
|         messageSubscribers.addListener(Actions.UPLOAD_STATE, (request, sender, sendResponse) => { | ||||
|             sendResponse('recieved!'); | ||||
|             this.setState(request.fileName, request.state) | ||||
|         }); | ||||
|     } | ||||
|     get state(): string { | ||||
|         let s = this._state; | ||||
|         this._state = ""; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user