Use correct variable

pull/6/head
Frode Petterson 2015-11-06 15:35:06 +01:00
parent 2f5e1fcc91
commit 16aa6813ae
1 changed files with 2 additions and 2 deletions

View File

@ -544,7 +544,7 @@ H5P.fullScreen = function ($element, instance, exitCallback, body) {
metaTags[i].content = lastViewport;
}
else {
head.removeChild(metaTags);
head.removeChild(metaTags[i]);
}
$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(metaTags);
head.appendChild(metaTags[i]);
}
entered();