plugins - communication between extensions developed for Google Chrome -
i have developed 2 extentions (say extenstion , extension b) google chrome. extension uses content-scripts.js , extension b uses content-scripts.js b.
in content-scripts.js a, have used localstorage.setitem("parametervariable","hi");
in content-scripts.js b, have used localstorage.getitem("parametervariable"), suppose return "hi", extension runs first , set "paranetervariable",and ectension b uses it. returning null.
how make extension b's localstorage.getitem("parametervariable") return value set extension b.
thanks in advance.
you can use chrome.extension module.
just make request listener on 1 of extensions and, in other, send request extension id of first. more details messaging here.
Comments
Post a Comment