Hard-disable the use of sponsored tiles.

This commit is contained in:
wolfbeast 2017-11-01 02:42:25 +01:00 • committed by Roy Tam
commit d789488825
5 changed files with 14 additions and 25 deletions

View file

@ -249,10 +249,15 @@ var AllPages = {
* Returns whether the history tiles are enhanced.
*/
get enhanced() {
#ifdef MC_BASILISK
// Hard-block the use of sponsored tiles.
return false;
#else
if (this._enhanced === null)
this._enhanced = Services.prefs.getBoolPref(PREF_NEWTAB_ENHANCED);
return this._enhanced;
#endif
},
/**