Commit 2e2dd598 authored by Ganesh Katrapati's avatar Ganesh Katrapati
Browse files

Fixed manifest

parent bcc87304
......@@ -31,7 +31,7 @@
<p><select id="Commodity">
</select></p>
<button type="button" id='submit'>Get Price</button>
<button type="button" id='submit'>Get Price</button>
<div id='price'></div>
</body>
</html>
......@@ -4,11 +4,14 @@ window.addEventListener('DOMContentLoaded', function() {
window.states = []
function loadStates() {
var request = new XMLHttpRequest({mozSystem:true});
request.onload = function (e) {
console.log("Hello");
if (request.status === 200 || request.status === 0) {
var text = request.responseText;
var json = JSON.parse(text);
console.log(json);
for(record_id in json.records){
record = json.records[record_id];
if (window.states.indexOf(record.state) == -1) {
......
......@@ -13,6 +13,10 @@
"name": "Swecha",
"url": "http://www.swecha.org"
},
"type": "privileged",
"permissions": {
"systemXHR":{}
},
"locales": {
"es": {
"name": "precios",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment