Update patch_window.js

Wrap Android if()