diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-11-23 05:43:00 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-11-23 05:43:00 +0900 |
| commit | 3f8ebac466ece8e9598432f3f574ec44e420c03b (patch) | |
| tree | 05114fce9728d6ce1deecc1f2eb8a903a22b0100 /src/web/app/desktop/scripts | |
| parent | :v: (diff) | |
| download | sharkey-3f8ebac466ece8e9598432f3f574ec44e420c03b.tar.gz sharkey-3f8ebac466ece8e9598432f3f574ec44e420c03b.tar.bz2 sharkey-3f8ebac466ece8e9598432f3f574ec44e420c03b.zip | |
なんかもうめっちゃ変えた
Closes #940
Diffstat (limited to 'src/web/app/desktop/scripts')
| -rw-r--r-- | src/web/app/desktop/scripts/fuck-ad-block.ts | 2 | ||||
| -rw-r--r-- | src/web/app/desktop/scripts/update-avatar.ts | 5 | ||||
| -rw-r--r-- | src/web/app/desktop/scripts/update-banner.ts | 5 |
3 files changed, 7 insertions, 5 deletions
diff --git a/src/web/app/desktop/scripts/fuck-ad-block.ts b/src/web/app/desktop/scripts/fuck-ad-block.ts index 3307ba2f30..8be3c80ea1 100644 --- a/src/web/app/desktop/scripts/fuck-ad-block.ts +++ b/src/web/app/desktop/scripts/fuck-ad-block.ts @@ -1,7 +1,7 @@ require('fuckadblock'); import dialog from './dialog'; -declare var fuckAdBlock: any; +declare const fuckAdBlock: any; export default () => { if (fuckAdBlock === undefined) { diff --git a/src/web/app/desktop/scripts/update-avatar.ts b/src/web/app/desktop/scripts/update-avatar.ts index 5fd7f2d3d1..356f4e6f9d 100644 --- a/src/web/app/desktop/scripts/update-avatar.ts +++ b/src/web/app/desktop/scripts/update-avatar.ts @@ -1,5 +1,6 @@ +declare const _API_URL_: string; + import * as riot from 'riot'; -import CONFIG from '../../common/scripts/config'; import dialog from './dialog'; import api from '../../common/scripts/api'; @@ -44,7 +45,7 @@ export default (I, cb, file = null) => { if (folder) data.append('folder_id', folder.id); const xhr = new XMLHttpRequest(); - xhr.open('POST', CONFIG.apiUrl + '/drive/files/create', true); + xhr.open('POST', _API_URL_ + '/drive/files/create', true); xhr.onload = e => { const file = JSON.parse((e.target as any).response); progress.close(); diff --git a/src/web/app/desktop/scripts/update-banner.ts b/src/web/app/desktop/scripts/update-banner.ts index 23a671c44d..1996b75642 100644 --- a/src/web/app/desktop/scripts/update-banner.ts +++ b/src/web/app/desktop/scripts/update-banner.ts @@ -1,5 +1,6 @@ +declare const _API_URL_: string; + import * as riot from 'riot'; -import CONFIG from '../../common/scripts/config'; import dialog from './dialog'; import api from '../../common/scripts/api'; @@ -44,7 +45,7 @@ export default (I, cb, file = null) => { if (folder) data.append('folder_id', folder.id); const xhr = new XMLHttpRequest(); - xhr.open('POST', CONFIG.apiUrl + '/drive/files/create', true); + xhr.open('POST', _API_URL_ + '/drive/files/create', true); xhr.onload = e => { const file = JSON.parse((e.target as any).response); progress.close(); |