Skip to content

Commit 896d41f

Browse files
author
Pooya Parsa
committed
feat: prevent zooming page using viewport
https://davidwalsh.name/zoom-mobile-browsers
1 parent 8a95de4 commit 896d41f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: lib/module.js

+3
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ module.exports = function nuxt7 (moduleOptions) {
114114
if (!this.options.meta) this.options.meta = {}
115115
this.options.meta.mobileAppIOS = true
116116

117+
// Prevent zooming page for a better Native experience
118+
this.options.meta.viewport = 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0, minimal-ui'
119+
117120
// Require PWA module
118121
return Promise.all([
119122
this.requireModule('@nuxtjs/pwa')

0 commit comments

Comments
 (0)