Permalink
Browse files

SSL support

Signed-off-by: Sebastian Skuse <seb@skuse.net>
  • Loading branch information...
1 parent 660d6ae commit a35d0f63e0ed122cffff642d3001ce36114f695f @sebskuse sebskuse committed Nov 24, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 ATBar.user.js
View
@@ -1,6 +1,7 @@
if(typeof window['AtKit'] == "undefined"){
// Load AtKit
- d=document;jf=d.createElement('script');jf.src='http://c.atbar.org/atkit/AtKit.js';jf.type='text/javascript';jf.id='AtKitLib';d.getElementsByTagName('head')[0].appendChild(jf);
+
+ d=document;jf=d.createElement('script');jf.src=('https:' == document.location.protocol ? 'https://ssl.atbar.org/c' : 'http://c.atbar.org') + '/atkit/AtKit.js';jf.type='text/javascript';jf.id='AtKitLib';d.getElementsByTagName('head')[0].appendChild(jf);
window.AtKitLoaded = function(){
var eventAction = null;
@@ -30,10 +31,11 @@ function __start(){
$ = AtKit.lib();
var settings = {
- 'baseURL': 'http://c.atbar.org/ATBar/',
'version': '2.0.070-beta1'
};
+ settings.baseURL = ('https:' == document.location.protocol ? 'https://ssl.atbar.org/c/ATBar/' : 'http://c.atbar.org/ATBar/');
+
var plugins = ["ftw", "resize", "fonts", "spell", "dictionary", "tts", "css"];
var onLoad = function(){

0 comments on commit a35d0f6

Please sign in to comment.