Comparing version 0.0.1 to 0.0.2
16
index.js
module.exports = new (function() { | ||
if (!navigator || typeof navigator.getDeviceStorage !== 'function') { | ||
console.warn('Your Browser does not support device storage.'); | ||
function hasDeviceStorage() | ||
{ | ||
if (!navigator || typeof navigator.getDeviceStorage !== 'function') { | ||
console.warn('Your Browser does not support device storage.'); | ||
return false; | ||
} | ||
return true; | ||
} | ||
hasDeviceStorage(); | ||
var self = this; | ||
@@ -32,2 +40,6 @@ | ||
{ | ||
if (!hasDeviceStorage()) { | ||
return null; | ||
}; | ||
return navigator.getDeviceStorage(type); | ||
@@ -34,0 +46,0 @@ } |
{ | ||
"name": "ffos-fs", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "fs module for the Firefox OS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12863
301