summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/newtab/sites.js
diff options
context:
space:
mode:
authoradeshkp <adeshkp@users.noreply.github.com>2019-05-25 15:59:28 -0400
committeradeshkp <adeshkp@users.noreply.github.com>2019-05-25 15:59:28 -0400
commit97477c1e96fded7c40534afa3ad0bfc3980658e3 (patch)
treee3dbf60a023bec9187cc4ba09a3372b106643581 /application/palemoon/components/newtab/sites.js
parent8db31d53674d6b9d7f15f50d06d73c5661fc0c0a (diff)
downloadUXP-97477c1e96fded7c40534afa3ad0bfc3980658e3.tar
UXP-97477c1e96fded7c40534afa3ad0bfc3980658e3.tar.gz
UXP-97477c1e96fded7c40534afa3ad0bfc3980658e3.tar.lz
UXP-97477c1e96fded7c40534afa3ad0bfc3980658e3.tar.xz
UXP-97477c1e96fded7c40534afa3ad0bfc3980658e3.zip
Issue #246 - Remove "enhanced" newtab code from Pale Moon
Diffstat (limited to 'application/palemoon/components/newtab/sites.js')
-rw-r--r--application/palemoon/components/newtab/sites.js14
1 files changed, 1 insertions, 13 deletions
diff --git a/application/palemoon/components/newtab/sites.js b/application/palemoon/components/newtab/sites.js
index a368146bb..cb5675238 100644
--- a/application/palemoon/components/newtab/sites.js
+++ b/application/palemoon/components/newtab/sites.js
@@ -136,15 +136,6 @@ Site.prototype = {
return str;
},
- _getSuggestedTileExplanation: function() {
- let targetedName = `<strong> ${this.link.targetedName} </strong>`;
- let targetedSite = `<strong> ${this.link.targetedSite} </strong>`;
- if (this.link.explanation) {
- return this._newTabString(this.link.explanation, [targetedName, targetedSite]);
- }
- return newTabString("suggested.button", [targetedName]);
- },
-
/**
* Checks for and modifies link at campaign end time
*/
@@ -155,11 +146,8 @@ Site.prototype = {
this.link.url = Services.io.newURI(this.url, null, null).resolve("/");
// clear supplied images - this triggers thumbnail download for new url
delete this.link.imageURI;
- delete this.link.enhancedImageURI;
// remove endTime to avoid further time checks
delete this.link.endTime;
- // clear enhanced-content image that may still exist in preloaded page
- this._querySelector(".enhanced-content").style.backgroundImage = "";
gPinnedLinks.replace(oldUrl, this.link);
}
},
@@ -337,7 +325,7 @@ Site.prototype = {
}
else if (!pinned && target.classList.contains("newtab-control-pin")) {
if (this.pin()) {
- // suggested link has changed - update rest of the pages
+ // link has changed - update rest of the pages
gAllPages.update(gPage);
}
action = "pin";