Make the service worker send custom response

This commit is contained in:
Rahul Sharma 2016-07-25 14:31:07 +05:30
parent 81a1e28da1
commit 36dbd27ba5
4 changed files with 52 additions and 29 deletions

View file

@ -15,7 +15,7 @@ pub enum WorkerScriptMsg {
/// Common variants associated with the script messages
Common(CommonScriptMsg),
/// Message sent through Worker.postMessage
DOMMessage(StructuredCloneData),
DOMMessage(StructuredCloneData)
}
pub struct SimpleWorkerErrorHandler<T: Reflectable> {