download the raw content

This commit is contained in:
Mylloon 2022-10-26 15:39:52 +02:00
parent a4dfb37a7d
commit 0a7dd0055e
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -21,7 +21,7 @@ def init(commit_hash):
# Download the js file if needed
if not exist(f"{path}/{filename}"):
# Download the font file
file_url = f"https://github.com/juanelas/bigint-mod-arith/blob/{commit_hash}/dist/esm/index.browser.js"
file_url = f"https://raw.githubusercontent.com/juanelas/bigint-mod-arith/{commit_hash}/dist/esm/index.browser.js"
data = get(file_url).content
# Save the file