Skip to content

Commit 38245ef

Browse files
committed
Make contrast script a raw string
This resolves some not-useful warnings about invalid escapes that we were getting. Nothing should be escaped in here in the first place; it's a pure JavaScript string with no substitutions or dynamic values.
1 parent 5b2db97 commit 38245ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_monitoring_diff/html_render_diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1905,7 +1905,7 @@ def get_diff_styles():
19051905
script {{display: none !important;}}'''
19061906

19071907

1908-
UPDATE_CONTRAST_SCRIPT = """
1908+
UPDATE_CONTRAST_SCRIPT = r"""
19091909
(function () {
19101910
// Update the text color of change elements to ensure a readable level
19111911
// of contrast with the background color

0 commit comments

Comments
 (0)