Closed AvinashAgarwal14 closed 6 years ago
CORS solved by just removing those comments? How come it is true? @AvinashAgarwal14 Can you elaborate/provide the lines of code that actually solved this because I too have this issue.
No,CORS was solved by adding "content_security_policy":"script-src 'self' https://www.google.com/; object-src 'self'" in manifest,json file. Actually, those comments were unnecessary that's why I removed them. Re-installing the application(Extension) after adding this line to manifest.json solved my problem.
@AvinashAgarwal14 Thanks for your help. It would be better if you could give the commit id, file name and line number.
Okay. Commit ID - 584d9b4116349456ffe695b7b43c7ddc52a471c3 Filename - manifest.json line number - 3,4,5,412
Hi Avinash, you have done a really great job. Sorry, for addressing it a little bit late. We are planning to release a new version of Fearch by next week. It would be really great to have your PR as a part of that release. I will suggest a few changes it would be awesome if you can update the PR and have it be live for 1200+ users we have right now 😄
Hi, thank you it would be awesome. What changes am I supposed to do?
These things would suffice -
autocomplete="off"
on the search input field. Right now I am getting my input history being overlayed on the suggestions provided. I hope this should fix this problem.$(document).ready(function(){
$(":not(#query)").click(function(){
for(var i=0;i<(sug.length);i++)
{
sug[i].classList.add("off");
}
});
});
If it is just for this piece of code. I think adding a library is not justified. You should use vanilla js only. Thankyou
Yes,
Thankyou. Let me know if you need help with something.
I have updated the PR with the required changes, please check.
Great work @AvinashAgarwal14 Thanks @nkprince007 @Compro-Prasad for the help with suggestions.
CORS Solved, Suggestion List is added to Fearch.