Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4130921
preInit.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
805 B
Referenced Files
None
Subscribers
None
preInit.js
View Options
module
.
exports
=
function
()
{
const
menus
=
require
(
'./menu.js'
);
// setup main menu
menus
.
init
();
(
function
(
wgRedirectedFrom
)
{
// If the user has been redirected, then show them a toast message (see
// https://phabricator.wikimedia.org/T146596).
if
(
wgRedirectedFrom
===
null
)
{
return
;
}
const
redirectedFrom
=
mw
.
Title
.
newFromText
(
wgRedirectedFrom
);
if
(
redirectedFrom
)
{
// mw.Title.getPrefixedText includes the human-readable namespace prefix.
const
title
=
redirectedFrom
.
getPrefixedText
();
const
$msg
=
$
(
'<div>'
).
html
(
mw
.
message
(
'mobile-frontend-redirected-from'
,
title
).
parse
()
);
$msg
.
find
(
'a'
).
attr
(
'href'
,
mw
.
util
.
getUrl
(
title
,
{
redirect
:
'no'
}
)
);
mw
.
notify
(
$msg
);
}
}(
mw
.
config
.
get
(
'wgRedirectedFrom'
)
)
);
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 19, 10:38 (3 w, 1 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a6/5b/ef651fd36f661ddd4fc792945162
Default Alt Text
preInit.js (805 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment