Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: include.preload.js

Issue 29367316: Issue 4722 - Drop support for Chrome 41 - 48 (Closed)
Patch Set: Removed getIndistinguishableTypes function Created Dec. 16, 2016, 9:37 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/ext/background.js ('k') | lib/csp.js » ('j') | lib/requestBlocker.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include.preload.js
diff --git a/include.preload.js b/include.preload.js
index 93acaeacd78ee37fc74a9686c25bf6dcd66103e9..2828275a319ac7dbfac4ffcf71f43c1a75e58952 100644
--- a/include.preload.js
+++ b/include.preload.js
@@ -15,8 +15,6 @@
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
-var MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
-
var typeMap = {
"img": "IMAGE",
"input": "IMAGE",
@@ -164,13 +162,12 @@ function checkCollapse(element)
{
collapseElement();
- if (MutationObserver)
- new MutationObserver(collapseElement).observe(
- element, {
- attributes: true,
- attributeFilter: ["style"]
- }
- );
+ new MutationObserver(collapseElement).observe(
+ element, {
+ attributes: true,
+ attributeFilter: ["style"]
+ }
+ );
}
}
);
« no previous file with comments | « chrome/ext/background.js ('k') | lib/csp.js » ('j') | lib/requestBlocker.js » ('J')

Powered by Google App Engine
This is Rietveld