Fix after previous commit

This commit is contained in:
oobabooga 2024-06-23 21:58:28 -07:00
parent 57119c1b30
commit 5e8dc56f8a

View File

@ -44,7 +44,7 @@ def my_open(*args, **kwargs):
file_contents = f.read()
file_contents = file_contents.replace('\t\t<script\n\t\t\tsrc="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.9/iframeResizer.contentWindow.min.js"\n\t\t\tasync\n\t\t></script>', '')
file_contents = file_contents.replace('cdnjs.cloudflare.com', b'127.0.0.1')
file_contents = file_contents.replace('cdnjs.cloudflare.com', '127.0.0.1')
file_contents = file_contents.replace(
'</head>',
'\n <script src="file/js/katex/katex.min.js"></script>'