mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-03 12:28:51 +00:00
See ChangeLog.
Monotone-Parent: 1ea08f6ec84d602c5e78b6c440e2f7d6297a82cd Monotone-Revision: 61b12be970a9603306d37277ee431b6fd5ab89cd Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2011-12-02T07:22:47
This commit is contained in:
@@ -447,6 +447,24 @@ static NSMutableArray *abbrMonthLabelKeys = nil;
|
||||
inContext: context]);
|
||||
}
|
||||
|
||||
- (BOOL) singleWindowModeEnabled
|
||||
{
|
||||
//WEClientCapabilities *cc;
|
||||
NSString *value;
|
||||
BOOL result;
|
||||
|
||||
//cc = [[context request] clientCapabilities];
|
||||
|
||||
//NSLog(@"User agent = %@, Type = %@, OS = %@, CPU = %@, Browser major version = %i", [cc userAgent], [cc userAgentType], [cc os], [cc cpu], [cc majorVersion]);
|
||||
|
||||
value = [[context request] cookieValueForKey: @"SOGoWindowMode"];
|
||||
result = ([value isEqualToString: @"single"]);
|
||||
|
||||
NSLog(@"Single window mode %@", result?@"enabled":@"disabled");
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/* SoUser */
|
||||
|
||||
- (NSString *) shortUserNameForDisplay
|
||||
|
||||
Reference in New Issue
Block a user