Skip to content

Commit 0cc15df

Browse files
Chocobozzzwebzwo0i
authored andcommitted
Prevent pad translation and crash
Prevent "TypeError: Cannot read properties of null (reading 'sheet')" exception because google chrome can translate `<style type="text/css" title="dynamicsyntax"></style>` title attribute
1 parent cb257de commit 0cc15df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/templates/pad.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
;
66
%>
77
<!doctype html>
8-
<html class="pad <%=pluginUtils.clientPluginNames().join(' '); %> <%=settings.skinVariants%>">
8+
<html translate="no" class="pad <%=pluginUtils.clientPluginNames().join(' '); %> <%=settings.skinVariants%>">
99
<head>
1010
<% e.begin_block("htmlHead"); %>
1111
<% e.end_block(); %>

src/templates/timeslider.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
, langs = require("ep_etherpad-lite/node/hooks/i18n").availableLangs
44
%>
55
<!doctype html>
6-
<html class="pad <%=settings.skinVariants%>">
6+
<html translate="no" class="pad <%=settings.skinVariants%>">
77
<head>
88
<title data-l10n-id="timeslider.pageTitle" data-l10n-args='{ "appTitle": "<%=settings.title%>" }'><%=settings.title%> Timeslider</title>
99
<script>

0 commit comments

Comments
 (0)