summaryrefslogtreecommitdiff
path: root/src/web/app/desktop/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/app/desktop/scripts')
-rw-r--r--src/web/app/desktop/scripts/fuck-ad-block.ts2
-rw-r--r--src/web/app/desktop/scripts/update-avatar.ts5
-rw-r--r--src/web/app/desktop/scripts/update-banner.ts5
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();