Skip to content

Commit

Permalink
chore: update demo page uri
Browse files Browse the repository at this point in the history
  • Loading branch information
embbnux committed Aug 20, 2024
1 parent a2891e2 commit 131d65c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ <h2 id="quick-start">Quick start</h2>
</button>
<div class="version-select">
<select id="version-select" title="Version">
<option value="latest">Version: Legacy</option>
<option value="latest">Version: latest</option>
<option value="1.x">Version: Legacy 1.x</option>
<option value="2.x">Version: 2.x</option>
</select>
</div>
Expand Down Expand Up @@ -564,7 +565,7 @@ <h2>C2D demo</h2>
basePath === 'https://apps.ringcentral.com/integration/ringcentral-embeddable/latest' ||
basePath === 'https://ringcentral.github.io/ringcentral-embeddable'
) {
version = '2.x';
version = 'latest';
}
return version;
}
Expand All @@ -576,11 +577,17 @@ <h2>C2D demo</h2>
if (defaultVersion === '2.x') {
return 'https://apps.ringcentral.com/integration/ringcentral-embeddable/2.x';
}
if (defaultVersion === '1.x') {
return 'https://apps.ringcentral.com/integration/ringcentral-embeddable/1.10.2';
}
return basePath;
}
if (selectedVersion === '2.x') {
return 'https://apps.ringcentral.com/integration/ringcentral-embeddable/2.x';
}
if (selectedVersion === '1.x') {
return 'https://apps.ringcentral.com/integration/ringcentral-embeddable/1.10.2';
}
return basePath.replace(defaultVersion, selectedVersion);
}
function initVersionSelect() {
Expand Down

0 comments on commit 131d65c

Please sign in to comment.