You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.warn('Cannot save annotations from WebViewer demo server.');
9
+
if(!serverUrl){
10
+
console.warn('serverUrl option is not defined. Please pass this option in WebViewer constructor to save/load annotations. See https://www.pdftron.com/documentation/web/guides/annotations/saving-loading-annotations for details.');
14
11
return;
15
12
}
16
13
17
-
if(serverUrl==='/annotations'){
18
-
console.warn('serverUrl option is not defined. Falling back to `/annotations`, which handles requests in /samples/server.js');
19
-
}
20
-
21
14
$.ajax({
22
15
type: 'POST',
23
16
url: serverUrl,
@@ -27,7 +20,7 @@ export default store => () => {
27
20
'data': core.exportAnnotations()
28
21
},
29
22
success: ()=>{
30
-
alert(`Annotations saved to /annotations/${docId ? docId : 'default'}.xfdf`);
23
+
alert(`Annotations saved to ${serverUrl}/${docId ? docId : 'default'}.xfdf`);
0 commit comments