]> git.saurik.com Git - cydia.git/commitdiff
Expose cydia.version to JavaScript.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 24 Feb 2011 01:13:07 +0000 (17:13 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 7 Mar 2011 10:41:11 +0000 (02:41 -0800)
MobileCydia.mm

index de54853cce02346868e0191ef9f7205b4380eb15..b73ed67f2b3871ad12c703d338734f69dd22e706 100644 (file)
@@ -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];
 }