Skip to content

Commit 0bf18b7

Browse files
committed
Add phantom
1 parent 3965507 commit 0bf18b7

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/assets/javascripts/services.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ function rewrite(url, originUrl, frontend, randomInstance, type) {
201201
if (query) return `${randomInstance}/search?query="${query}${mapCentre}&${utils.prefsEncoded(prefs)}`
202202
return `${randomInstance}/${mapCentre}&${utils.prefsEncoded(prefs)}`
203203
}
204+
case "phantom":
204205
case "breezeWiki": {
205206
let wiki,
206207
urlpath = ""
@@ -955,7 +956,8 @@ const defaultInstances = {
955956
gocook: ["https://cook.adminforge.de"],
956957
wikimore: ["https://wikimore.private.coffee"],
957958
libreTranslate: ["https://libretranslate.com"],
958-
cryptPad: ["https://cryptpad.org"]
959+
cryptPad: ["https://cryptpad.org"],
960+
phantom: ["https://phantom.kuuro.net"]
959961
}
960962

961963
async function getDefaults() {

src/config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,11 @@
507507
"name": "BreezeWiki",
508508
"instanceList": true,
509509
"url": "https://breezewiki.com"
510+
},
511+
"phantom": {
512+
"name": "Phantom",
513+
"instanceList": true,
514+
"url": "https://codeberg.org/phantom-org/phantom"
510515
}
511516
},
512517
"targets": [

0 commit comments

Comments
 (0)