cross-domain-storage
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -114,3 +114,3 @@ var crel = require('crel'); | ||
function set(key, value, callback) { | ||
message('set', key, value, null, callback); | ||
message('set', key, value, callback); | ||
} | ||
@@ -117,0 +117,0 @@ |
{ | ||
"name": "cross-domain-storage", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Cross domain local storage", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,12 +5,12 @@ var crel = require('crel'), | ||
var instructions = crel('div', { | ||
class: 'instructions', | ||
}, | ||
crel('h3', 'cross-domain-storage guest') | ||
var instructions = crel( | ||
'div', | ||
{ | ||
class: 'instructions', | ||
}, | ||
crel('h3', 'cross-domain-storage guest'), | ||
); | ||
doc.ready(function () { | ||
crel(document.body, | ||
instructions | ||
); | ||
doc.ready(function() { | ||
crel(document.body, instructions); | ||
@@ -20,8 +20,9 @@ var storageGuest = createStorageGuest('http://localhost:9123'); | ||
// TODO: actually write some tests here | ||
storageGuest.get('foo', function(error, data) { | ||
console.log('Guest callback: ', error, data); | ||
}); | ||
storageGuest.get('foo', function (error, data) { | ||
console.log('foo:', arguments); | ||
storageGuest.set('foo', 'cabbage', function(error, data) { | ||
console.log('Set callback:', error, data); | ||
}); | ||
storageGuest.set('foo', 'cabbage'); | ||
}); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2304
159766