diff --git a/client/injected.ts b/client/injected.ts index 20cf535..d1fff70 100644 --- a/client/injected.ts +++ b/client/injected.ts @@ -192,7 +192,7 @@ if ('WebSocket' in window && !block) { _diffDOMStatus = 'loading' return new Promise(resolve => { const baseurl = new URL(script.src).pathname.split('/').slice(0, -1).join('/') - const url = `//${new URL(script.src).host}${baseurl}/fiveserver/scripts/diffDOM.js` + const url = `//${new URL(script.src).host}${baseurl}/fiveserver/scripts/diffDOM/diffDOM.js` const s = document.createElement('script') s.type = 'text/javascript' s.src = url diff --git a/public/scripts/diffDOM/LICENSE.js b/public/scripts/diffDOM/LICENSE.js new file mode 100644 index 0000000..c313926 --- /dev/null +++ b/public/scripts/diffDOM/LICENSE.js @@ -0,0 +1,5 @@ +/** + * @copyright Copyright (C) 2007 Free Software Foundation, Inc. + * @license ${link https://github.com/fiduswriter/diffDOM/blob/main/LICENSE.txt | LGPL-3.0} + * @description diffDOM.js and diffDOM.js.map are copied from https://github.com/fiduswriter/diffDOM + */ diff --git a/public/scripts/diffDOM.js b/public/scripts/diffDOM/diffDOM.js similarity index 100% rename from public/scripts/diffDOM.js rename to public/scripts/diffDOM/diffDOM.js diff --git a/public/scripts/diffDOM.js.map b/public/scripts/diffDOM/diffDOM.js.map similarity index 100% rename from public/scripts/diffDOM.js.map rename to public/scripts/diffDOM/diffDOM.js.map