This commit is contained in:
syuilo
2017-02-19 15:32:10 +09:00
parent 7609892c1f
commit d392da64ab
14 changed files with 34 additions and 20 deletions

View File

@@ -17,6 +17,11 @@ require('./common/tags');
document.domain = CONFIG.host;
// Set global configration
riot.mixin({
CONFIG: CONFIG
});
// ↓ iOS待ちPolyfill (SEE: http://caniuse.com/#feat=fetch)
require('whatwg-fetch');
@@ -109,7 +114,7 @@ function fetchme(token, cb) {
}
// Fetch user
fetch(CONFIG.api.url + '/i', {
fetch(CONFIG.apiUrl + '/i', {
method: 'POST',
body: JSON.stringify({
i: token