Move the `if` for IE windows
Merge pull request #830 from camptocamp/ie

Move the `if` for IE windows