Skip to content

Instantly share code, notes, and snippets.

@michielbdejong
Last active December 21, 2015 22:58
Show Gist options
  • Save michielbdejong/6378568 to your computer and use it in GitHub Desktop.
Save michielbdejong/6378568 to your computer and use it in GitHub Desktop.
<html>
<body></body>
<script src="release/0.8.1/remotestorage.js"></script>
<script>
RemoteStorage.defineModule('test', function(privC, pubC) {
return {
exports: {
test: function() {
privC.storeFile('test', 'A%2FB', 'test');//should result in a PUT to a URL ending in ../test/A%252FB, not A%2FB
}
}
};
});
remoteStorage.displayWidget();
remoteStorage.access.claim('test', 'rw');
remoteStorage.test.test();
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment