Chrome-extension using .Net Blazor-webassembly technology

647 views
Skip to first unread message

Muhammed Waleed Hafeez

unread,
Mar 10, 2021, 9:00:46 AM3/10/21
to Chromium Extensions
Hi there!

I am building a chrome-extension using .Net Blazor-webassembly-app technology. because I need to run c# code instead of javascript on frontend with HTML and CSS.
Problem:
I am having an issue that my content_script, backgroung_script and web_accessible_resources files arn't loading through manifest.json. I have implemented the same logic we do with html, css and javascript. 
-- if i open developer tool by clicking on the "background page" on chrome://extension there in the console it shows that background.js is running wiht the other jquery file too.
-- but if I inspect my extension and it opens a new developer tool and there it shows that not only content_script but also background_script and web_accessible_resources aren't loading my any .js files.

Note:
I have enclosed my manifest.json, background.js and contentscript.js files' code screenshots.
i can also share my code if need it. right now i can't share it because my file size is 29MB. 

rough Extension .net5.GIF
manifest.GIF
background.GIF
contentscript.GIF

wOxxOm

unread,
Mar 10, 2021, 9:27:34 AM3/10/21
to Chromium Extensions, mohammed.wa...@gmail.com
The popup is a page that belongs to the extension, it's not a web page, so it doesn't run content scripts or web_accessible_resources as these are for web contents. The popup doesn't run the background script either because the background script already runs in the hidden background page, which is a separate page not related to the popup. 
Reply all
Reply to author
Forward
0 new messages