@vkontakte/mvk-mini-apps-scroll-helper
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -14,7 +14,7 @@ 'use strict'; | ||
var searchParams = new URLSearchParams(location.search); | ||
var isMobileWeb = location.search.indexOf("".concat(PLATFORM_PARAM, "=").concat(MOBILE_WEB)) > -1; | ||
var _navigator = navigator, | ||
userAgent = _navigator.userAgent; | ||
if ((userAgent.includes('iPhone') || userAgent.includes('iPad')) && searchParams.get(PLATFORM_PARAM) === MOBILE_WEB) { | ||
if ((userAgent.indexOf('iPhone') > -1 || userAgent.indexOf('iPad') > -1) && isMobileWeb) { | ||
appContainerNode.style.overflowY = 'scroll'; | ||
@@ -21,0 +21,0 @@ appContainerNode.style.webkitOverflowScrolling = 'touch'; |
@@ -18,7 +18,7 @@ (function (global, factory) { | ||
var searchParams = new URLSearchParams(location.search); | ||
var isMobileWeb = location.search.indexOf("".concat(PLATFORM_PARAM, "=").concat(MOBILE_WEB)) > -1; | ||
var _navigator = navigator, | ||
userAgent = _navigator.userAgent; | ||
if ((userAgent.includes('iPhone') || userAgent.includes('iPad')) && searchParams.get(PLATFORM_PARAM) === MOBILE_WEB) { | ||
if ((userAgent.indexOf('iPhone') > -1 || userAgent.indexOf('iPad') > -1) && isMobileWeb) { | ||
appContainerNode.style.overflowY = 'scroll'; | ||
@@ -25,0 +25,0 @@ appContainerNode.style.webkitOverflowScrolling = 'touch'; |
{ | ||
"name": "@vkontakte/mvk-mini-apps-scroll-helper", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "dist/mvk-mini-apps-scroll-helper.cjs.js", | ||
@@ -5,0 +5,0 @@ "browser": "dist/mvk-mini-apps-scroll-helper.umd.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4956
5
43
1