Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2982)

Unified Diff: chrome/renderer/resources/mobile_youtube_plugin.html

Issue 846513002: Fix Mobile YouTube Plugin replacement content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
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: chrome/renderer/resources/mobile_youtube_plugin.html
diff --git a/chrome/renderer/resources/mobile_youtube_plugin.html b/chrome/renderer/resources/mobile_youtube_plugin.html
index 79f3aee56cca81af6060a30e4a9d89e251e0268b..69e8efa70f256d69c7ed75656470210ac1bcb293 100644
--- a/chrome/renderer/resources/mobile_youtube_plugin.html
+++ b/chrome/renderer/resources/mobile_youtube_plugin.html
@@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width, user-scalable=no">
<script>
function insertBackground() {
- var video = templateData['video_id'];
+ var video = loadTimeData.getValue("video_id");
document.body.style.backgroundImage = "url('http://img.youtube.com/vi/" + video + "/0.jpg')";
}
</script>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698