Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function(chars, index) {
- for (chars = index = 0; index < localStorage.length; index++ )
- chars += localStorage.getItem(localStorage.key(index)).length
- return `${(chars/1024/1024).toPrecision(5)} MB ≈${(chars/5/1024/1024*100).toPrecision(3)}%`
- })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement