Skip to content

Commit

Permalink
fix(tools): add integrity checks for the jquery cdn link
Browse files Browse the repository at this point in the history
  • Loading branch information
kantord committed Jan 8, 2022
1 parent 7e22872 commit 990fb11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/tools/librelingo_tools/templates/converter.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div id="output">
<div>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script>
$(document).ready(function(){
var source_to_target = null;
Expand Down
2 changes: 1 addition & 1 deletion apps/tools/librelingo_tools/templates/missing_words.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h2>Missing Words</h2>
</div>


<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script>
$(document).ready(function(){
//var source_to_target = null;
Expand Down
2 changes: 1 addition & 1 deletion apps/tools/practice.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_args():
return args


def check(translation, lookup, word)
def check(translation, lookup, word):
return translation.lower() in [wrd.lower() for wrd in lookup[word]]


Expand Down

0 comments on commit 990fb11

Please sign in to comment.