Ability to force the version of onlyoffice

This commit is contained in:
yflory
2020-01-22 11:55:27 +01:00
parent 746b382166
commit ad8bf87c3f
2 changed files with 7 additions and 2 deletions

View File

@@ -38,6 +38,7 @@ define([
}).nThen(function (/*waitFor*/) {
var addData = function (obj) {
obj.ooType = window.location.pathname.replace(/^\//, '').replace(/\/$/, '');
obj.ooForceVersion = localStorage.CryptPad_ooVersion || sessionStorage.CryptPad_ooVersion || "";
};
var addRpc = function (sframeChan, Cryptpad, Utils) {
sframeChan.on('Q_OO_SAVE', function (data, cb) {