1 |
|
2 | chromix = require("chromix-too")().chromix
|
3 |
|
4 | chromix "chrome.storage.local.set", {}, {pi: 3.141}, ->
|
5 | chromix "chrome.storage.local.get", {}, "pi", (response) ->
|
6 | console.log response.pi
|
7 |
|
8 | # If the unix-domain socket were not in the default localtion, then use something like:
|
9 | #
|
10 | # chromix = require("chromix-too")("/var/run/chromix-too.sock").chromix
|