Last active
August 13, 2018 00:33
-
-
Save arpruss/41de5118805336f4a7123cc939648ad2 to your computer and use it in GitHub Desktop.
Disable zoom control
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var meta = document.querySelector('meta[name="viewport"]'); | |
if (meta != null) | |
meta.content = 'min-width=10, max-width=10000, min-height=10, max-height=10000, initial-scale=1.0, maximum-scale=50.0, minimum-scale=0.02, user-scalable=1'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment