I am in the process of developing a Chrome extension as well as a web JavaScript application. I currently have an HTML container.
I need the container.html file to include
<script src="extension.js">
when it is running in the Chrome extension, and
<script src="web.js">
when it is running in the web version.
(However, having both at the same time is not possible)
Does anyone have any ideas on how to dynamically include either one script or the other depending on whether the code is running as an extension or not?