summaryrefslogtreecommitdiff
path: root/xpi/content/aboutnewtab.js
blob: 065e2be37e28dcbf0fddbf47124ef475cc67b7a5 (plain)
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
"use strict";

(function(global) {
var Cu = Components.utils;

var {Services} = Cu.import("resource://gre/modules/Services.jsm", {});

if (typeof ctrAboutNewTab  == "undefined") {
    var ctrAboutNewTab  = {};
};
if (!ctrAboutNewTab ) {
    ctrAboutNewTab  = {};
};
 
ctrAboutNewTab = {
	init: function(){
		if(Services.prefs.getBranch('extensions.classicthemerestorer.').getBoolPref('alt_newtabp')) {
		  try{
			document.getElementById("newtab-window").setAttribute('fx40plus',true);
		  } catch(e){}
		}		
	}
}
  // Make ctrAboutNewTab a global variable
  try{
	global.ctrAboutNewTab = ctrAboutNewTab.init();
  } catch(e){}
}(this));