Fixing "Viewport argument value" error in webkit's console
I've been doing a lot of web development for mobile devices lately, and while I've been using chrome's developer tools, I keep getting annoying error messages in the console like this...
Viewport argument value "1;" for key "initial-scale" was truncated to its numeric prefix.
The culprit here is my viewport meta tag. Mine looked like this...
<meta name="viewport" content="width=device-width;
height=device-height; initial-scale=1; maximum-scale=1; user-scalable=0;">
Which looks correct at first glance, I probably copy and pasted it from another website somewhere. But if you examine webkit's documentation, you'll notice that the separators are supposed to be commas, not semi-colons. I fixed the separators so my meta tag looks like this now...
<meta name="viewport" content="width=device-width,
height=device-height, initial-scale=1, maximum-scale=1, user-scalable=0">
And problem solved, my console log is nice and quiet now.
To: @mattccrampton
0
Other Posts
When exporting photos from a service like Flickr, perhaps after they've given notice that they're going to delete our photos if you don't subscribe to......
All Truthy and Falsy Javascript Values In Nodejs, every value has an associated boolean, true or false, value. For example, a null value has an......
Google Forcing Nest Cameras Visual Indicator Light To Be On Received the following email from Google today... Full email text... Recently, we shared our commitment......
Posting to Twitter with Python - Part Two: Posting Photos NOTE: This is part two of my posting to Twitter with Python tutorial. If you......
Doubleclick to open a file in VIM from OSX I use VIM for just about everything from note taking to coding to keeping track of......
Sign Into Gmail Without Signing Into Google Chrome Unfortunately, Google has made changes to Chrome since this blog post was posted which removed the options......