Method: Browser::Blob#to_url
- Defined in:
- opal/browser/blob.rb
#to_url(window = $window) ⇒ Object
Convert a blob to an URL that can be used to reference this blob in DOM eg. display some multimedia
62 63 64 |
# File 'opal/browser/blob.rb', line 62 def to_url(window=$window) `#{window.to_n}.URL.createObjectURL(#@native)` end |