Improve compatibility with old versions
- Remove starting "/sdcard/" from file paths on old Firefox OS versions - Cache results for faster navigation on old Firefox OS devices
This commit is contained in:
@ -31,6 +31,10 @@ export function reportError(err) {
|
||||
store.dispatch(action);
|
||||
}
|
||||
|
||||
export function normalize(path) {
|
||||
return path.replace(/^\//, '').replace('sdcard/', '');
|
||||
}
|
||||
|
||||
const sizes = {
|
||||
'GB': Math.pow(2, 30),
|
||||
'MB': Math.pow(2, 20),
|
||||
|
Reference in New Issue
Block a user