mirror of
https://github.com/JonasunderscoreJones/builds.jonasjones.dev.git
synced 2025-10-23 19:49:19 +02:00
moved displayNames
This commit is contained in:
parent
0509809c0d
commit
e9146261f7
1 changed files with 11 additions and 12 deletions
|
@ -2,6 +2,9 @@ addEventListener('fetch', (event) => {
|
|||
event.respondWith(handleRequest(event.request));
|
||||
});
|
||||
|
||||
|
||||
|
||||
function getDisplayName(namespace) {
|
||||
const displayNames = {
|
||||
'jonasjones': 'Homepage (jonasjones.dev)',
|
||||
'wiki-jonasjones-dev': 'Jonas_Jones Wiki (wiki.jonasjones.dev)',
|
||||
|
@ -13,10 +16,6 @@ const displayNames = {
|
|||
'jonasjones-docs': 'Jonas_Jones Docs (docs.jonasjones.dev)',
|
||||
'jonasjonesstudios-com': 'Jonas_Jones Studios (jonasjonesstudios.com)',
|
||||
};
|
||||
|
||||
|
||||
|
||||
function getDisplayName(namespace) {
|
||||
//check if the namespace is in the displayNames object. if not, return the namespace
|
||||
return displayNames[namespace] || namespace;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue