mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added todo
This commit is contained in:
parent
b7837284a9
commit
50f6ca2c14
@ -4,9 +4,13 @@ import { Bridge } from "linebridge/dist/client"
|
||||
import { Session } from "models"
|
||||
|
||||
export default class ApiExtension extends Extension {
|
||||
depends = ["SettingsExtension"]
|
||||
|
||||
constructor(app, main) {
|
||||
super(app, main)
|
||||
|
||||
//this.config = this.getServerOrigins()
|
||||
|
||||
this.apiBridge = this.createBridge()
|
||||
this.WSInterface = this.apiBridge.wsInterface
|
||||
this.WSInterface.request = this.WSRequest
|
||||
@ -15,6 +19,11 @@ export default class ApiExtension extends Extension {
|
||||
this.WSInterface.mainSocketConnected = false
|
||||
}
|
||||
|
||||
getServerOrigins = () => {
|
||||
// TODO: try to get origins from settings
|
||||
// const storagedOrigins = window.app.settings.get("serverOrigins")
|
||||
}
|
||||
|
||||
initializers = [
|
||||
async () => {
|
||||
this.WSSockets.main.on("authenticated", () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user