Die if reviewing a nonexistent page
This commit is contained in:
parent
c856667023
commit
5d588b9923
@ -3,7 +3,10 @@
|
||||
var $afchLaunchLink, $afch, $afchWrapper,
|
||||
afchPage, afchSubmission, afchViews, afchViewer;
|
||||
|
||||
AFCH.log( 'submissions.js executing...' );
|
||||
// Die if reviewing a nonexistent page
|
||||
if ( mw.config.get( 'wgArticleId' ) === 0 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents an AfC submission -- its status as well as comments.
|
||||
|
Loading…
x
Reference in New Issue
Block a user