Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent pad translation and crash #5336

Merged
merged 1 commit into from Dec 22, 2021
Merged

Conversation

Chocobozzz
Copy link
Contributor

@Chocobozzz Chocobozzz commented Dec 22, 2021

Prevent "TypeError: Cannot read properties of null (reading 'sheet')" exception leading to a crash

Google chrome can translate <style type="text/css" title="dynamicsyntax"></style> title attribute. So https://github.com/ether/etherpad-lite/blob/develop/src/static/js/ace.js#L310 will throw.

It also disables pad content translation.

Prevent "TypeError: Cannot read properties of null (reading 'sheet')"
exception because google chrome can translate `<style type="text/css" title="dynamicsyntax"></style>` title attribute
@webzwo0i webzwo0i merged commit 0cc15df into ether:develop Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants