From 2f5e1fcc91a12a4957b1bd20a9394101919dae13 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Thu, 5 Nov 2015 16:52:38 +0100 Subject: [PATCH] Use correct variable. --- js/h5p.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/h5p.js b/js/h5p.js index 7d6d784..39a20d5 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -544,7 +544,7 @@ H5P.fullScreen = function ($element, instance, exitCallback, body) { metaTags[i].content = lastViewport; } else { - head.removeChild(metaTag); + head.removeChild(metaTags); } $disable.remove(); $body.unbind('keyup', keyup); @@ -575,7 +575,7 @@ H5P.fullScreen = function ($element, instance, exitCallback, body) { metaTags[i].content = 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'; if (!lastViewport) { var head = document.getElementsByTagName('head')[0]; - head.appendChild(metaTag); + head.appendChild(metaTags); } entered();