From bf1d5e6995608d94751fcbdc76514283cfb82e18 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 23 Feb 2011 17:13:07 -0800 Subject: Expose cydia.version to JavaScript. --- MobileCydia.mm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'MobileCydia.mm') diff --git a/MobileCydia.mm b/MobileCydia.mm index de54853..b73ed67 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4014,6 +4014,7 @@ static NSString *Warning_; @"role", @"serial", @"token", + @"version", nil]; } @@ -4025,6 +4026,10 @@ static NSString *Warning_; return ![[self _attributeKeys] containsObject:[NSString stringWithUTF8String:name]] && [super isKeyExcludedFromWebScript:name]; } +- (NSString *) version { + return @ Cydia_; +} + - (NSString *) device { return [[UIDevice currentDevice] uniqueIdentifier]; } -- cgit v1.2.3