Stackedit/js/config.js

25 lines
839 B
JavaScript
Raw Normal View History

2013-04-10 18:14:59 +00:00
var GOOGLE_SCOPES = [ "https://www.googleapis.com/auth/drive.install",
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/blogger" ];
2013-04-06 00:57:52 +00:00
var GOOGLE_DRIVE_APP_ID = "241271498917";
2013-04-07 15:22:13 +00:00
var DROPBOX_APP_KEY = "lq6mwopab8wskas";
var DROPBOX_APP_SECRET = "851fgnucpezy84t";
2013-04-02 18:42:47 +00:00
var DEFAULT_FILE_TITLE = "Title";
var GDRIVE_DEFAULT_FILE_TITLE = "New Markdown document";
var CHECK_ONLINE_PERIOD = 60000;
2013-04-03 22:52:29 +00:00
var AJAX_TIMEOUT = 10000;
2013-04-02 18:42:47 +00:00
var ASYNC_TASK_DEFAULT_TIMEOUT = 30000;
var AUTH_POPUP_TIMEOUT = 90000;
2013-04-07 15:22:13 +00:00
var SYNC_PERIOD = 180000;
2013-04-10 18:14:59 +00:00
var USER_IDLE_THRESHOLD = 300000;
2013-04-02 18:42:47 +00:00
var SYNC_PROVIDER_GDRIVE = "sync.gdrive.";
2013-04-07 15:22:13 +00:00
var SYNC_PROVIDER_DROPBOX = "sync.dropbox.";
2013-04-02 18:42:47 +00:00
// Use by Google's client.js
var delayedFunction = undefined;
function runDelayedFunction() {
2013-04-10 18:14:59 +00:00
if (delayedFunction !== undefined) {
delayedFunction();
}
2013-04-02 18:42:47 +00:00
}