diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-23 17:13:07 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 02:41:11 -0800 |
commit | bf1d5e6995608d94751fcbdc76514283cfb82e18 (patch) | |
tree | 924d280e9bc51e6d65dbe131328a578f117b279e | |
parent | 6348721de3e4baa701f117ba60534a9d8732705c (diff) |
Expose cydia.version to JavaScript.
-rw-r--r-- | MobileCydia.mm | 5 |
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]; } |