|
@@ -55,6 +55,8 @@ var initViewport = function (height, width) {
|
|
|
metaEl.setAttribute('name', 'viewport');
|
|
|
metaEl.setAttribute('content', content);
|
|
|
}
|
|
|
+var realHeight = window.innerHeight > window.innerWidth ? window.innerWidth : window.innerHeight
|
|
|
+var realWidth = window.innerHeight > window.innerWidth ? window.innerHeight : window.innerWidth
|
|
|
initViewport(realHeight, realWidth);
|
|
|
|
|
|
|