Skip to content

Use DOMContentLoaded and fix sharebymail loading issue - #21921

Merged
skjnldsv merged 1 commit into
masterfrom
fix/use-DOMContentLoaded
Jul 20, 2020
Merged

Use DOMContentLoaded and fix sharebymail loading issue#21921
skjnldsv merged 1 commit into
masterfrom
fix/use-DOMContentLoaded

Conversation

@skjnldsv

@skjnldsvskjnldsv commented Jul 20, 2020

Copy link
Copy Markdown
Member

After #20949

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Comment on lines +181 to +185
const capabilities = OC.getCapabilities()
// eslint-disable-next-line camelcase
return capabilities?.files_sharing?.sharebymail !== undefined
// eslint-disable-next-line camelcase
&& capabilities?.files_sharing?.public?.enabled === true

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For you @rullzer

@skjnldsvskjnldsv mentioned this pull request Jul 20, 2020
@skjnldsv

Copy link
Copy Markdown
MemberAuthor

Failure unrelated :)
app-comments.feature

@juliusknorrjuliusknorr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to do the trick with the random loading issues.

@skjnldsv
skjnldsv merged commit 84ca586 into masterJul 20, 2020
@skjnldsv
skjnldsv deleted the fix/use-DOMContentLoaded branch July 20, 2020 12:07
@MorrisJobke

Copy link
Copy Markdown
Member

Oh! This makes the integration tests more reliable! 🚀

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@skjnldsv@MorrisJobke@georgehrke@juliusknorr