electron/spec/fixtures/api/localstorage.html
2015-11-10 15:29:43 +08:00

11 lines
252 B
HTML

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