Skizit
Skizit

Reputation: 44852

Chrome extensions: import local Javascript into popup.html

I know you can use the manifest for contentscripts.. but is there any way I can import local javascript files into popup.html?

Upvotes: 0

Views: 781

Answers (1)

Mohamed Mansour
Mohamed Mansour

Reputation: 40169

Since your popup.html is an extension page, then it is a normal HTML page. You can add an import in there.

<script type="text/javascript" src="local_javascript.js"></script>

Hope that helped!

Upvotes: 1

Related Questions