Commit 191a947d authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Fixup Default Document in jio_crib

parent ef455f6c
...@@ -31,7 +31,12 @@ ...@@ -31,7 +31,12 @@
.ready(function (gadget) { .ready(function (gadget) {
// Initialize the gadget local parameters // Initialize the gadget local parameters
gadget.state_parameter_dict = {}; gadget.state_parameter_dict = {};
gadget.state_parameter_dict.default_document = window.location.protocol + "//" + window.location.host + window.location.pathname.substring(0, window.location.pathname.length - "gadget_jio_crib.html".length); gadget.state_parameter_dict.default_document = window.location.protocol +
"//" + window.location.host +
window.location.pathname.substring(
0,
window.location.pathname.length - "gadget_jio_crib.html".length
) + "/";
console.log(gadget.state_parameter_dict.default_document); console.log(gadget.state_parameter_dict.default_document);
this.state_parameter_dict.jio_storage = jIO.createJIO({ this.state_parameter_dict.jio_storage = jIO.createJIO({
"type": "indexeddb", "type": "indexeddb",
......
Markdown is supported
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