app: api to clear data from different storage types
This commit is contained in:
parent
d661099322
commit
628fb5f5e9
5 changed files with 150 additions and 6 deletions
11
spec/fixtures/api/localstorage.html
vendored
Normal file
11
spec/fixtures/api/localstorage.html
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
<html>
|
||||
<body>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
window.localStorage.setItem('test', 'test');
|
||||
var ipc = require('ipc');
|
||||
ipc.on('getcount', function() {
|
||||
ipc.send('count', window.localStorage.length);
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue