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

Unified Diff: safari/include.youtube.js

Issue 29356615: Issue 4351 - Check History variable exists (Closed)
Patch Set: Created Oct. 12, 2016, 3:47 p.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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: safari/include.youtube.js
diff --git a/safari/include.youtube.js b/safari/include.youtube.js
index 034d49cf74cbb4d5993bff67b115b975d85f821c..8165fa6dbb5bdbee51484a8373efd87839fe05a7 100644
--- a/safari/include.youtube.js
+++ b/safari/include.youtube.js
@@ -97,7 +97,8 @@
// player with JavaScript which video and which ads to show next,
// bypassing our flashvars rewrite code. So we disable
// history.pushState before YouTube's JavaScript runs.
- History.prototype.pushState = undefined;
+ if (typeof History != "undefined")
Sebastian Noack 2016/10/12 15:51:58 It seems that the History object is supported sinc
Sebastian Noack 2016/10/12 18:03:35 Fair enough, lets give it a try. But please check
+ History.prototype.pushState = undefined;
// The HTML5 player is configured via ytplayer.config.args. We have
// to make sure that ad-related arguments are ignored as they are set.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld