summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-05-15 10:54:24 +0800
committerCheng-Han, Wu2016-05-15 10:54:24 +0800
commita70ebf77620d6c5651e092cc4998c416161746cf (patch)
tree47deac42c840b770a17e79795b7a8ac5b8320784 /lib
parenta816420302b2c38893ab719e2a52c4c4b4ba7b50 (diff)
Update to move dropbox app key setting to common.js and will auto load client-side related scripts
Diffstat (limited to 'lib')
-rw-r--r--lib/config.js4
-rw-r--r--lib/response.js9
2 files changed, 4 insertions, 9 deletions
diff --git a/lib/config.js b/lib/config.js
index 64d2056a..b85a9666 100644
--- a/lib/config.js
+++ b/lib/config.js
@@ -61,7 +61,6 @@ var twitter = config.twitter || false;
var github = config.github || false;
var dropbox = config.dropbox || false;
var imgur = config.imgur || false;
-var googleDrive = config.googleDrive || false;
function getserverurl() {
var url = '';
@@ -112,6 +111,5 @@ module.exports = {
twitter: twitter,
github: github,
dropbox: dropbox,
- imgur: imgur,
- googleDrive: googleDrive,
+ imgur: imgur
};
diff --git a/lib/response.js b/lib/response.js
index 9d75561a..994c65fe 100644
--- a/lib/response.js
+++ b/lib/response.js
@@ -72,8 +72,7 @@ function responseError(res, code, detail, msg) {
code: code,
detail: detail,
msg: msg,
- useCDN: config.usecdn,
- googleDrive: config.googleDrive,
+ useCDN: config.usecdn
});
res.write(content);
res.end();
@@ -95,8 +94,7 @@ function showIndex(req, res, next) {
facebook: config.facebook,
twitter: config.twitter,
github: config.github,
- dropbox: config.dropbox,
- googleDrive: config.googleDrive,
+ dropbox: config.dropbox
});
res.write(content);
res.end();
@@ -126,8 +124,7 @@ function responseHackMD(res, note) {
facebook: config.facebook,
twitter: config.twitter,
github: config.github,
- dropbox: config.dropbox,
- googleDrive: config.googleDrive,
+ dropbox: config.dropbox
});
var buf = html;
res.writeHead(200, {