mirror of
https://github.com/ragestudio/comty.js.git
synced 2025-06-09 02:24:18 +00:00
Use globalThis.location?.origin
This commit is contained in:
parent
1e86f7638f
commit
94c8d7383e
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "comty.js",
|
||||
"version": "0.65.4",
|
||||
"version": "0.65.5",
|
||||
"main": "./dist/index.js",
|
||||
"description": "Official Comty API for JavaScript",
|
||||
"homepage": "https://github.com/ragestudio/comty.js",
|
||||
|
@ -1,7 +1,7 @@
|
||||
const envOrigins = {
|
||||
development: globalThis.isServerMode
|
||||
? "http://localhost:9000"
|
||||
: `${location.origin}/api`,
|
||||
: `${globalThis.location?.origin}/api`,
|
||||
indev: "https://indev.comty.app/api",
|
||||
production: "https://api.comty.app",
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user