Skip to content

Commit

Permalink
Merge pull request 'fix: remove openFile param from url on close edit…
Browse files Browse the repository at this point in the history
…or' from hotfix/close-editor-openfile-param into develop

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/onlyoffice-nextcloud/pulls/7
  • Loading branch information
LinneyS committed Oct 8, 2024
2 parents 8b42e94 + 16f443f commit 40b2f4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ import NewPdfSvg from '!!raw-loader!../img/new-pdf.svg';

OCA.Onlyoffice.context = null

const url = OCA.Onlyoffice.folderUrl
let url = OCA.Onlyoffice.folderUrl
url = url.replace(new RegExp('&?openfile=true','g'),'')

Check failure on line 200 in src/main.js

View workflow job for this annotation

GitHub Actions / Lint

Use a regular expression literal instead of the 'RegExp' constructor

Check failure on line 200 in src/main.js

View workflow job for this annotation

GitHub Actions / Lint

A space is required after ','

Check failure on line 200 in src/main.js

View workflow job for this annotation

GitHub Actions / Lint

A space is required after ','
if (url) {
window.history.pushState(null, null, url)
OCA.Onlyoffice.folderUrl = null
Expand Down

0 comments on commit 40b2f4f

Please sign in to comment.