Skip to content
Advertisement

Viewport argument value “device-width;” for key “width” is invalid, and has been ignored. Note that

I am getting this error in JavaScript:

Viewport argument value “device-width;” for key “width” is invalid, and has been ignored. Note that ‘;’ is not a separator in viewport values. The list should be comma-separated.

How do I fix this?

Advertisement

Answer

I had this same error. Oddly, it’s quite simple to fix. Just change the semicolons for commas, like in:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement