Skip to content

Commit

Permalink
docs(plugin-presence): fix typo and add building of presence docs to …
Browse files Browse the repository at this point in the history
…main package
  • Loading branch information
sreenara committed Apr 21, 2024
1 parent c2e39d7 commit 36f4ff2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/samples/browser-plugin-presence/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function setSelfPresence() {
}

function getUserPresence() {
const userId = getUserPresenceElm.value;
const userId = getUserPresenceElm.value.trim();
webex.presence.get(userId)
.then((response) => {
userPresenceStatusElm.innerText = JSON.stringify(response, null, 2);
Expand All @@ -137,7 +137,7 @@ function startPresenceListener() {
}

function subscribePresence() {
const ids = subscribeUserIds.value.split(',');
const ids = subscribeUserIds.value.trim().split(',');
startPresenceListener();
webex.presence.subscribe(ids)
.then(() => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"build:dev": "NODE_ENV=development node ./tooling/index.js build",
"prebuild:modules": "yarn && yarn @tools build:src && yarn @legacy-tools build:src && yarn workspace @webex/webex-core build:src && yarn @all build:src",
"prebuild:docs": "rimraf ./docs/api",
"build:docs": "yarn workspace @webex/calling run build:docs && documentation build --config documentation/config.yml --format html --output ./docs/api --github ./packages/webex/src/index.js ./packages/@webex/plugin-*/src/index.[tj]s --babel=./babel.config.json",
"build:docs": "yarn workspace @webex/plugin-presence run build:docs && yarn workspace @webex/calling run build:docs && documentation build --config documentation/config.yml --format html --output ./docs/api --github ./packages/webex/src/index.js ./packages/@webex/plugin-*/src/index.[tj]s --babel=./babel.config.json",
"check-karma-output": "./scripts/analyze-output.sh",
"build:package": "node ./tooling/index.js build",
"changelog:generate": "npx standard-changelog",
Expand Down
2 changes: 1 addition & 1 deletion packages/@webex/plugin-presence/src/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface IPresenceStatusObject {
expiresTime: string;
vectorCounters: object;
suppressNotifications: boolean;
lastseeeDeviceUrl: string;
lastseenDeviceUrl: string;
}

export interface IEventPayload {
Expand Down

0 comments on commit 36f4ff2

Please sign in to comment.