mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-23 15:05:52 +00:00
fix bug preventing the CPPlatformWindow's title to change once opened
This commit is contained in:
1 parent
afa691376e
commit
d0c59ee253
1 file changed
+2
-1
@@ -264,7 +264,8 @@ var PrimaryPlatformWindow = NULL;
|
||||
_title = aTitle;
|
||||
|
||||
#if PLATFORM(DOM)
|
||||
if (_DOMWindow && _DOMWindow.document && (aWindow === [CPApp mainWindow]))
|
||||
if (_DOMWindow && _DOMWindow.document
|
||||
&& (aWindow === [CPApp mainWindow] || [aWindow platformWindow] !== [CPPlatformWindow primaryPlatformWindow]))
|
||||
_DOMWindow.document.title = _title;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user