mirror of
https://github.com/moparisthebest/FireTray
synced 2025-01-06 11:08:04 -05:00
Cleaning.
This commit is contained in:
parent
738c412c23
commit
7da4cc30c0
@ -171,10 +171,15 @@ firetray.Handler.registerWindow = function(win) {
|
||||
|
||||
let baseWin = firetray.Handler.getWindowInterface(win, "nsIBaseWindow");
|
||||
let nativeHandle = baseWin.nativeHandle;
|
||||
let hwnd = nativeHandle ?
|
||||
firetray.Win32.hexStrToHwnd(nativeHandle) :
|
||||
user32.FindWindowW("MozillaWindowClass", win.document.title);
|
||||
let wid = firetray.Win32.hwndToHexStr(hwnd);
|
||||
let hwnd, wid;
|
||||
if (nativeHandle) {
|
||||
hwnd = firetray.Win32.hexStrToHwnd(nativeHandle);
|
||||
wid = nativeHandle;
|
||||
}
|
||||
else {
|
||||
hwnd = user32.FindWindowW("MozillaWindowClass", win.document.title);
|
||||
wid = firetray.Win32.hwndToHexStr(hwnd);
|
||||
}
|
||||
log.debug("=== hwnd="+hwnd+" wid="+wid+" win.document.title: "+win.document.title);
|
||||
|
||||
if (this.windows.hasOwnProperty(wid)) {
|
||||
|
Loading…
Reference in New Issue
Block a user