Skip to content

Commit

Permalink
Merge pull request #187 from csfloat/feature/detect-extension
Browse files Browse the repository at this point in the history
Allows Detecting Extension on csfloat.com
  • Loading branch information
Step7750 authored Dec 14, 2023
2 parents 4c00cc6 + 5d34487 commit 271722b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
{
"resources": ["src/model_frame.html", "src/model_frame.js"],
"matches": ["https://steamcommunity.com/*"]
},
{
"resources": ["src/version.txt"],
"matches": ["https://csfloat.com/*"]
}
]
}
11 changes: 10 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = (env) => {
getPathEntries('./src/lib/page_scripts/*.ts'),
getPathEntries('./src/lib/types/*.d.ts'),
getPathEntries('./src/background.ts'),
getPathEntries('./src/**/*.js'),
getPathEntries('./src/**/*.js')
),
output: {
path: path.join(__dirname, 'dist'),
Expand Down Expand Up @@ -99,6 +99,15 @@ module.exports = (env) => {
return JSON.stringify(processed, null, 2);
},
},
{
from: 'manifest.json',
to: 'src/version.txt',
transform(raw) {
let processed = JSON.parse(raw.toString());

return processed.version;
},
},
],
}),
],
Expand Down

0 comments on commit 271722b

Please sign in to comment.