fossasia / susi_chromebot

SUSI.AI Chrome Extension
GNU Lesser General Public License v2.1
1.54k stars 139 forks source link

Loading Bootstrap file from Option.html gives an error #555

Open harshit-soora opened 3 years ago

harshit-soora commented 3 years ago

I'm submitting a ...

Current behavior:

Whenever you click for the settings page option.html from the login page login.html, the background loads a javascript file bootstrap.min.js from the web, that in return leads to an error

Expected behavior:

There will not be any such error

Steps to reproduce:

Instead of calling the javascript file the web, we do have it inside our local folder /bootstrap So we make a reference call to the same

Related code:

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

Inside option.html

Solution:

Simply we will call it as

<script src="bootstrap/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

Screenshots of the issue:

error

Ubuntu 20.04

Would you like to work on the issue?

Yes, sure!