diff options
author | sualko <klaus@jsxc.org> | 2020-03-27 13:55:10 +0300 |
---|---|---|
committer | sualko <klaus@jsxc.org> | 2020-03-27 13:55:10 +0300 |
commit | 496a20ad4938f64cb5ca8b948bb048161f84a7c2 (patch) | |
tree | f543d2ac4925aab155074a669b1463156a9b9028 /appinfo | |
parent | 1f43c133ed5c57339c5990daa98f15e5b64e3a18 (diff) |
fix: load script to overwrite clear storage
this was missing in the previous commit
Diffstat (limited to 'appinfo')
-rwxr-xr-x | appinfo/app.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/appinfo/app.php b/appinfo/app.php index e5253d4..5de6f1d 100755 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -28,8 +28,11 @@ addScript($urlGenerator->linkTo('ojsxc', 'js/libsignal/libsignal-protocol.js') . addScript($urlGenerator->linkTo('ojsxc', 'js/jsxc/jsxc.bundle.js') . $versionHashSuffix); addScript($urlGenerator->linkTo('ojsxc', 'js/bundle.js') . $versionHashSuffix); -OCP\Util::addStyle ( 'ojsxc', '../js/jsxc/styles/jsxc.bundle' ); -OCP\Util::addStyle ( 'ojsxc', 'bundle' ); +// workaround to overwrite localStorage.clear +\OC_Util::addScript( 'ojsxc', 'overwriteClearStorage', true ); + +\OCP\Util::addStyle ( 'ojsxc', '../js/jsxc/styles/jsxc.bundle' ); +\OCP\Util::addStyle ( 'ojsxc', 'bundle' ); if(class_exists('\\OCP\\AppFramework\\Http\\EmptyContentSecurityPolicy')) { $manager = \OC::$server->getContentSecurityPolicyManager(); |