dist/fhlog.js
/**
 * Request access to the file system.
 * This is called only after quota is granted.
 * @param {Number}       bytes
 * @param {Function}     success
 * @param {Function}     fail
 */
Request access to the file system.
This is called only after quota is granted.
Request access to the file system . This is called only after quota is granted .
function requestFileSystem(bytes, success, fail) {
  if (window.navigator.webkitRequestFileSystem) {
    window.navigator.webkitRequestFileSystem(bytes, success, fail);
  } else if (window.requestFileSystem) {
    window.requestFileSystem(
      window.LocalFileSystem.PERSISTENT,
      bytes,
      success,
      fail
    );
  } else if (window.webkitRequestFileSystem) {
    window.webkitRequestFileSystem(
      window.PERSISTENT_FLAG,
      bytes,
      success,
      fail
    );
  } else {
    fail('NO_SUPPORT');
  }
}
function requestFileSystem ( bytes , success , fail ) { if ( window . navigator . webkitRequestFileSystem ) { window . navigator . webkitRequestFileSystem ( bytes , success , fail ) ; } else if ( window . requestFileSystem ) { window . requestFileSystem ( window . LocalFileSystem . PERSISTENT , bytes , success , fail ) ; } else if ( window . webkitRequestFileSystem ) { window . webkitRequestFileSystem ( window . PERSISTENT_FLAG , bytes , success , fail ) ; } else { fail ( 'NO_SUPPORT' ) ; } }
Request access to the file system.
Request access to the file system .
// These are in order of preference due to some being deprecated