From b135ad4a5c9e09c38b758b1dbc444a03ded951df Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Wed, 16 Mar 2016 09:05:33 -0400 Subject: [PATCH] Add WOPISrc parameter --- js/documents.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/documents.js b/js/documents.js index 11ddbe3e..cc983069 100644 --- a/js/documents.js +++ b/js/documents.js @@ -197,8 +197,8 @@ var documentsMain = { documentsMain.url = window.location.protocol + '//' + window.location.host + url; var viewer = urlsrc + - 'file_path=' + encodeURIComponent(documentsMain.url) + - '&host=' + 'ws://' + window.location.hostname + ':9980' + + 'WOPISrc=' + encodeURIComponent(documentsMain.url) + + '&host=' + $('#wopi-url').val() + '&permission=' + 'view' + '×tamp=' + '';