diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-19 15:32:10 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-19 15:32:10 +0900 |
| commit | d392da64ab48a6c930d7f523dd9f844b0db2bd0b (patch) | |
| tree | 653e15c8c9bf54a11070df6859dcdbf31d837e37 /src/web/app/boot.js | |
| parent | :v: (diff) | |
| download | misskey-d392da64ab48a6c930d7f523dd9f844b0db2bd0b.tar.gz misskey-d392da64ab48a6c930d7f523dd9f844b0db2bd0b.tar.bz2 misskey-d392da64ab48a6c930d7f523dd9f844b0db2bd0b.zip | |
:tada:
Diffstat (limited to 'src/web/app/boot.js')
| -rw-r--r-- | src/web/app/boot.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/web/app/boot.js b/src/web/app/boot.js index b98602d402..c5dc6845af 100644 --- a/src/web/app/boot.js +++ b/src/web/app/boot.js @@ -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 |