mirror of
https://github.com/wassname/Mostly-Harmless.git
synced 2026-08-01 12:11:07 +08:00
terenary operator
This commit is contained in:
+1
-5
@@ -318,11 +318,7 @@ button = new BrowserAction();
|
||||
* @constructor
|
||||
*/
|
||||
function RedditAPI(domain) {
|
||||
if (domain) {
|
||||
this.domain = domain;
|
||||
} else {
|
||||
this.domain = 'www.reddit.com';
|
||||
}
|
||||
this.domain = domain ? domain : 'www.reddit.com';
|
||||
this.commentsMatchPattern = new RegExp('https?:\/\/' + utils.regexEscape(this.domain) + '(\/r\/(.+?))?\/comments\/(.+?)\/.*');
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user