diff --git a/src/frontend/scripts/characters/edit.ts b/src/frontend/scripts/characters/edit.ts index b520327..26c4059 100644 --- a/src/frontend/scripts/characters/edit.ts +++ b/src/frontend/scripts/characters/edit.ts @@ -1,12 +1,11 @@ import { UpdateSkillValueRequest, UpdateAttributeRequest } from "../../_proto/cofd_api_pb"; import * as api from "../api"; +// This is the scripting for the edit character page, which submits +// changes to the server as the user makes them. + (async () => { type Option = T | null | undefined; - //TODO start refactoring these into a separate script, and make API calls - //take all necessary info (e.g. username and character ID, plus other stuff) - //as object params. - //const root = await protobuf.load("/protos/cofd_api.proto"); const [, , USERNAME, CHARACTER_ID] = window.location.pathname.split('/');