@vkontakte/mvk-mini-apps-scroll-helper
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,1 +0,1 @@ | ||
"use strict";var mvkScrollHelper=function(e){if(e&&"string"==typeof e){var l=new URLSearchParams(window.location.search);if(l.has("vk_platform")&&"mobile_web"===l.get("vk_platform")){var o=document.getElementById(e);o&&(o.style.overflowY="scroll",o.style.webkitOverflowScrolling="touch")}}};module.exports=mvkScrollHelper; | ||
"use strict";var mvkScrollHelper=function(e){if(e&&"string"==typeof e){var o=new URLSearchParams(window.location.search);if((~window.navigator.userAgent.indexOf("iPhone")||~window.navigator.userAgent.indexOf("iPad"))&&o.has("vk_platform")&&"mobile_web"===o.get("vk_platform")){var r=document.getElementById(e);r&&(r.style.overflowY="scroll",r.style.webkitOverflowScrolling="touch")}}};module.exports=mvkScrollHelper; |
@@ -1,1 +0,1 @@ | ||
export default e=>{if(e&&"string"==typeof e){const o=new URLSearchParams(window.location.search);if(o.has("vk_platform")&&"mobile_web"===o.get("vk_platform")){const o=document.getElementById(e);o&&(o.style.overflowY="scroll",o.style.webkitOverflowScrolling="touch")}}}; | ||
export default e=>{if(e&&"string"==typeof e){const o=new URLSearchParams(window.location.search);if((~window.navigator.userAgent.indexOf("iPhone")||~window.navigator.userAgent.indexOf("iPad"))&&o.has("vk_platform")&&"mobile_web"===o.get("vk_platform")){const o=document.getElementById(e);o&&(o.style.overflowY="scroll",o.style.webkitOverflowScrolling="touch")}}}; |
@@ -1,1 +0,1 @@ | ||
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e=e||self).mVKMiniAppsScrollHelper=o()}(this,function(){"use strict";return e=>{if(e&&"string"==typeof e){const o=new URLSearchParams(window.location.search);if(o.has("vk_platform")&&"mobile_web"===o.get("vk_platform")){const o=document.getElementById(e);o&&(o.style.overflowY="scroll",o.style.webkitOverflowScrolling="touch")}}}}); | ||
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e=e||self).mVKMiniAppsScrollHelper=o()}(this,function(){"use strict";return e=>{if(e&&"string"==typeof e){const o=new URLSearchParams(window.location.search);if((~window.navigator.userAgent.indexOf("iPhone")||~window.navigator.userAgent.indexOf("iPad"))&&o.has("vk_platform")&&"mobile_web"===o.get("vk_platform")){const o=document.getElementById(e);o&&(o.style.overflowY="scroll",o.style.webkitOverflowScrolling="touch")}}}}); |
@@ -1,1 +0,1 @@ | ||
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e=e||self).mVKMiniAppsScrollHelper=o()}(this,function(){"use strict";return function(e){if(e&&"string"==typeof e){var o=new URLSearchParams(window.location.search);if(o.has("vk_platform")&&"mobile_web"===o.get("vk_platform")){var t=document.getElementById(e);t&&(t.style.overflowY="scroll",t.style.webkitOverflowScrolling="touch")}}}}); | ||
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e=e||self).mVKMiniAppsScrollHelper=o()}(this,function(){"use strict";return function(e){if(e&&"string"==typeof e){var o=new URLSearchParams(window.location.search);if((~window.navigator.userAgent.indexOf("iPhone")||~window.navigator.userAgent.indexOf("iPad"))&&o.has("vk_platform")&&"mobile_web"===o.get("vk_platform")){var n=document.getElementById(e);n&&(n.style.overflowY="scroll",n.style.webkitOverflowScrolling="touch")}}}}); |
{ | ||
"name": "@vkontakte/mvk-mini-apps-scroll-helper", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "dist/mvk-mini-apps-scroll-helper.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/mvk-mini-apps-scroll-helper.esm.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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
5168
10