mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-08 04:42:35 +00:00
Add user-scalable=no to the desktop
This commit is contained in:
1 parent
89aa02ccec
commit
380a4b45ef
1 file changed
+1
-1
@@ -192,7 +192,7 @@ window.initgui = async function(options){
|
||||
|
||||
// Appends a viewport meta tag to the head of the document, ensuring optimal display on mobile devices.
|
||||
// This tag sets the width of the viewport to the device width, and locks the zoom level to 1 (prevents user scaling).
|
||||
$('head').append(`<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">`);
|
||||
$('head').append(`<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">`);
|
||||
|
||||
// GET query params provided
|
||||
window.url_query_params = new URLSearchParams(window.location.search);
|
||||
|
||||
Reference in new issue
Block a user