misc CS fixes

This commit is contained in:
Danny van Kooten 2017-01-06 15:58:50 +01:00
parent 440a0e5bfa
commit d6a7cb0365
2 changed files with 4 additions and 5 deletions

View File

@ -1,10 +1,9 @@
'use strict'; 'use strict';
var Client = {}; var Client = {};
Client.request = function(resource, args) { Client.request = function(resource, args) {
args = args || {}; args = args || {};
args.credentials = 'include' args.credentials = 'same-origin'
args.headers = args.headers || {}; args.headers = args.headers || {};
args.headers['Accept'] = 'application/json'; args.headers['Accept'] = 'application/json';

View File

@ -1,8 +1,8 @@
'use strict'; 'use strict';
import { h, render, Component } from 'preact'; import { h, render, Component } from 'preact'
import Login from './pages/login.js'; import Login from './pages/login.js'
import Dashboard from './pages/dashboard.js'; import Dashboard from './pages/dashboard.js'
class App extends Component { class App extends Component {
constructor(props) { constructor(props) {