-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
45 lines (44 loc) · 1.13 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//jshint browser: true
/*global Acthesis: true */
window.defaultConfig = {
corsproxy: window.location.protocol + "//" + window.location.host + "/apps/alir/proxy/",
rsLogin: "me@" + window.location.host,
remoteActivity: true
};
var manifest, options;
// Init Activity polifill
if (typeof window.MozActivity === 'undefined') {
manifest = {
"activities": {
"save-bookmark": {
"filters": {
"type": "url",
"url": {
"required": true,
"regexp": "/^https?:/"
}
},
"disposition": "inline",
"href": "/index.html",
"returnValue": true
},
"share": {
"filters": {
"type": "url"
},
"disposition": "inline",
"href": null,
"returnValue": true
}
}
};
options = {
postMethod: "socket"
};
if (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1') {
options.server = 'http://localhost:9250';
} else {
options.server = window.location.protocol + "//" + window.location.hostname + "/apps/acthesis";
}
new Acthesis(options, manifest);
}