Skip to content

A Cordova plugin which provides Blob() constructor syntax for versions of Android which do not support it.

Notifications You must be signed in to change notification settings

samuelcampos/blob-constructor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

blob-constructor

A Cordova plugin which provides Blob() constructor syntax for versions of Android which do not support it.

This plugin is a fork of: https://github.com/MobileChromeApps/mobile-chrome-apps/tree/f4f884ffbf7af1c30b9da559f8afbccbca0bb151/plugins/polyfill-blob-constructor

##Overview

This plugin adds support for a the Blob() constructor syntax, which should be preferred in Chrome apps over the BlobBuilder interface. (See http://updates.html5rocks.com/2012/06/Don-t-Build-Blobs-Construct-Them)

##Installation

Cordova 2.7 or later with cordova cli and Plugman

Assuming you've used cordova create to create the platforms, you can use the following command to add the plugin:

cordova plugin add https://github.com/samuelcampos/blob-constructor.git

##Usage

var blob = new Blob(['Today is a good day'], {type: 'text/x-optimistic'});

About

A Cordova plugin which provides Blob() constructor syntax for versions of Android which do not support it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published