Skip to content

Commit df9a981

Browse files
committed
fixing JS library url and codeDepot markers
1 parent ad90876 commit df9a981

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

lib/eSignature/examples/focusedView.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ const sendEnvelope = async (args) => {
2525
let envelopesApi = new docusign.EnvelopesApi(dsApiClient),
2626
results = null;
2727

28-
// Step 1. Make the envelope request body
28+
// Make the envelope request body
2929
let envelope = makeEnvelope(args.envelopeArgs);
3030

31-
// Step 2. call Envelopes::create API method
31+
// Call Envelopes::create API method
3232
// Exceptions will be caught by the calling function
3333
results = await envelopesApi.createEnvelope(args.accountId, {
3434
envelopeDefinition: envelope,
@@ -38,7 +38,7 @@ const sendEnvelope = async (args) => {
3838
let envelopeId = results.envelopeId;
3939
console.log(`Envelope was created. EnvelopeId ${envelopeId}`);
4040

41-
// Step 3. create the recipient view, the embedded signing
41+
// Create the recipient view, the embedded signing
4242
//ds-snippet-start:eSign44Step5
4343
let viewRequest = makeRecipientViewRequest(args.envelopeArgs);
4444
// Call the CreateRecipientView API

views/pages/examples/eg044Embed.ejs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
<h2>The document has been embedded with focused view.</h2>
55
<br />
66

7+
<!--
8+
//ds-snippet-start:eSign44Step6
9+
-->
710
<!DOCTYPE html>
811
<html>
912
<head>
@@ -31,14 +34,13 @@
3134

3235
<p><a href="/">Continue</a></p>
3336

34-
<script src='https://docucdn-a.akamaihd.net/demo/1ds/libs/@embedded-js/core/latest/dist/bundle.js'></script>
37+
<script src='https://js.docusign.com/bundle.js'></script>
3538
<script>
3639
window.DocuSign.loadDocuSign('<%= integrationKey %>')
3740
.then((docusign) => {
3841
const signing = docusign.signing({
3942
url: '<%= url %>',
4043
displayFormat: 'focused',
41-
//ds-snippet-start:eSign44Step6
4244
style: {
4345
/** High-level variables that mirror our existing branding APIs. Reusing the branding name here for familiarity. */
4446
branding: {
@@ -56,7 +58,6 @@
5658
position: 'bottom-center'
5759
}
5860
}
59-
//ds-snippet-end:eSign44Step6
6061
});
6162
6263
signing.on('ready', (event) => {
@@ -74,6 +75,8 @@
7475
// Any configuration or API limits will be caught here
7576
});
7677
</script>
77-
78+
<!--
79+
//ds-snippet-end:eSign44Step6
80+
-->
7881

7982
<%- include("../../partials/genericFoot") %>

0 commit comments

Comments
 (0)