3 ms·
Just for you: https://gist.github.com/725354 https://gist.github.com/725354
by ionfish 16y ago
Just for you: https://gist.github.com/725354 https://gist.github.com/725354
- Kilimanjaro 16y agoI was thinking about something like: meta=document.querySelector('meta[name=viewport]') meta.parentNode.removeChild(meta) Thanks anyway for your quick response!
- ionfish 16y agoObviously that's fine for your use-case where the querySelector function is available, but it wouldn't work e.g. on Internet Explorer. My version is also more robust when dealing with markup errors, i.e. when there's more than one viewport meta element.