Add custome base64 encode to handle special character

This commit is contained in:
Nhat Tran
2019-01-24 15:35:16 +08:00
parent ae60604ef1
commit bc0602c523
3 changed files with 553 additions and 97 deletions

View File

@@ -92,7 +92,7 @@ function explainQuery(query, cb) { apiCall("post", "/explain", { quer
function disconnect(cb) { apiCall("post", "/disconnect", {}, cb); }
function encodeQuery(query) {
return window.btoa(query).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ".");
return Base64.encode(query).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ".");
}
function buildSchemaSection(name, objects) {