summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-23 17:13:07 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:11 -0800
commitbf1d5e6995608d94751fcbdc76514283cfb82e18 (patch)
tree924d280e9bc51e6d65dbe131328a578f117b279e
parent6348721de3e4baa701f117ba60534a9d8732705c (diff)
Expose cydia.version to JavaScript.
-rw-r--r--MobileCydia.mm5
1 files changed, 5 insertions, 0 deletions
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];
}