diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-23 06:41:01 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 02:41:10 -0800 |
commit | 3ea82d91d07fcd4ae6ae0db105228e091d2b9e91 (patch) | |
tree | ef5df485d6b855c4534515cd92eeb9a033b11765 | |
parent | 9737d93e40bfc503c704d12ed6752febc03a15ff (diff) |
Allow token read access back to JavaScript.
-rw-r--r-- | MobileCydia.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 73c639f..23621ce 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -3961,6 +3961,7 @@ static NSString *Warning_; @"plmn", @"role", @"serial", + @"token", nil]; } @@ -4018,6 +4019,10 @@ static NSString *Warning_; return [NSString stringWithUTF8String:Machine_]; } +- (NSString *) token { + return (id) Token_ ?: [NSNull null]; +} + + (NSString *) webScriptNameForSelector:(SEL)selector { if (false); else if (selector == @selector(addTrivialSource:)) |