Commit a14c7432 authored by Patricio Bruna's avatar Patricio Bruna

Fixed typos

parent 12fa1369
...@@ -5,6 +5,7 @@ dist ...@@ -5,6 +5,7 @@ dist
src/config src/config
node_modules node_modules
/path.json /path.json
./path.json
.npminstall .npminstall
ncp-debug.log ncp-debug.log
npm-debug.log npm-debug.log
......
module.exports = {"main":{"js":"/531271bundle.js"}} module.exports = {"main":{"js":"/516290bundle.js"}}
\ No newline at end of file \ No newline at end of file
...@@ -156,8 +156,8 @@ export function getAllCompanies() { ...@@ -156,8 +156,8 @@ export function getAllCompanies() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
return $.ajax({ return $.ajax({
url, url,
beforeSend: function(xhrObj) { beforeSend: function setApiToken(xhrObj) {
xhrObj.setRequestHeader("x-api-token", window.manager_config.user_token); xhrObj.setRequestHeader('x-api-token', window.manager_config.user_token);
}, },
dataType: 'json', dataType: 'json',
success: function onSuccess(data) { success: function onSuccess(data) {
...@@ -175,8 +175,8 @@ export function getCompany(id, success, error) { ...@@ -175,8 +175,8 @@ export function getCompany(id, success, error) {
return $.ajax({ return $.ajax({
url, url,
beforeSend: function(xhrObj) { beforeSend: function setApiToken(xhrObj) {
xhrObj.setRequestHeader("x-api-token", window.manager_config.user_token); xhrObj.setRequestHeader('x-api-token', window.manager_config.user_token);
}, },
dataType: 'json', dataType: 'json',
success: function onSuccess(data) { success: function onSuccess(data) {
...@@ -193,8 +193,8 @@ export function getInvoices(id, success, error) { ...@@ -193,8 +193,8 @@ export function getInvoices(id, success, error) {
return $.ajax({ return $.ajax({
url, url,
beforeSend: function(xhrObj) { beforeSend: function setApiToken(xhrObj) {
xhrObj.setRequestHeader("x-api-token", window.manager_config.user_token); xhrObj.setRequestHeader('x-api-token', window.manager_config.user_token);
}, },
dataType: 'json', dataType: 'json',
success, success,
......
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