electron/spec/fixtures/api/localstorage.html

12 lines
252 B
HTML
Raw Normal View History

<html>
<body>
<script type="text/javascript" charset="utf-8">
window.localStorage.setItem('test', 'test');
2015-11-10 07:29:43 +00:00
var ipc = require('ipc-renderer');
ipc.on('getcount', function() {
ipc.send('count', window.localStorage.length);
})
</script>
</body>
</html>