From 3f8ebac466ece8e9598432f3f574ec44e420c03b Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 23 Nov 2017 05:43:00 +0900 Subject: なんかもうめっちゃ変えた MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #940 --- src/web/app/desktop/scripts/fuck-ad-block.ts | 2 +- src/web/app/desktop/scripts/update-avatar.ts | 5 +++-- src/web/app/desktop/scripts/update-banner.ts | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) (limited to 'src/web/app/desktop/scripts') 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(); -- cgit v1.2.3-freya