gcollazo / BrowserRefresh-Sublime

This plugin will switch from ST2 and ST3 to Google Chrome, Google Chrome Canary, Safari, Firefox or Opera and reload the active tab
http://gcollazo.github.com/BrowserRefresh-Sublime
565 stars 62 forks source link

Win: Added clean support for 64bit windows. Updated README. Mac: Fixed issue #12 #19

Closed enriquein closed 11 years ago

enriquein commented 11 years ago

This patch provides "clean" support for 64bit Windows by finally managing to use the same WinAPI function under both circumstances. Now the behavior feels consistent on both 32 and 64 bit versions of Windows.

This patch also fixes the exception thrown when more than one browser window was open when attempting to refresh. This issue could also arise when having an instance of Google Chrome and one instance of Google Chrome Canary running at the same time, since both browsers look like "Google Chrome" to Windows.

An interesting side effect of this patch is that now we have Google Chrome Canary support under Windows. Updated the README to reflect this and to warn users to use "Google Chrome" instead of "Google Chrome Canary" as the configuration option when running under Windows.

Also since I was feeling excessively productive, I managed to take a stab at github issue #12 and implemented a fix. Now Chrome should come in front of the Developer Tools window if it's detached.