File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ function convertToFirefoxManifest(manifest) {
4242 cp . host_permissions . push ( '*://*.csfloat.com/*' ) ;
4343 // Force optional host permissions to be required
4444 cp . host_permissions = cp . host_permissions . concat ( cp . optional_host_permissions ) ;
45+ // Not supported in Firefox
46+ cp . permissions = cp . permissions . filter ( e => e !== 'offscreen' ) ;
47+
4548 return cp ;
4649}
4750
@@ -123,6 +126,13 @@ module.exports = (env) => {
123126 if ( mode === 'development' ) {
124127 // Add permissions only used for connecting to localhost dev env
125128 processed . host_permissions . push ( 'http://localhost:8080/*' ) ;
129+ processed . host_permissions . push ( 'http://localhost:4200/*' ) ;
130+
131+ // If you're running phoenix locally
132+ processed . content_scripts . push ( {
133+ matches : [ '*://*.localhost/*' ] ,
134+ js : [ 'src/lib/page_scripts/csfloat.js' ] ,
135+ } ) ;
126136
127137 const versionResource = processed . web_accessible_resources . find ( ( e ) =>
128138 e . resources [ 0 ] . includes ( 'version.txt' )
You can’t perform that action at this time.
0 commit comments