I think other platforms can have colons like Mac and Linux which are not relative.  Maybe add global.navigator.platform != "windows" just to be safe...