support structured cloning for Blob

This commit is contained in:
Gregory Terzian 2017-02-19 17:08:03 +08:00
parent ec84560e7f
commit 5c4f0be048
4 changed files with 163 additions and 24 deletions

View file

@ -166,6 +166,11 @@ impl Blob {
}
}
/// Get a copy of the type_string
pub fn get_type_string(&self) -> String {
self.type_string.clone()
}
/// Get a FileID representing the Blob content,
/// used by URL.createObjectURL
pub fn get_blob_url_id(&self) -> Uuid {