mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Added 's' to the standalone version string
This commit is contained in:
parent
372b2378a8
commit
328142dac7
2 changed files with 11 additions and 6 deletions
|
@ -258,12 +258,14 @@ module.exports = function (grunt) {
|
||||||
path: __dirname + "/build/prod"
|
path: __dirname + "/build/prod"
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.DefinePlugin(BUILD_CONSTANTS),
|
new webpack.DefinePlugin(Object.assign({}, BUILD_CONSTANTS, {
|
||||||
|
INLINE: "true"
|
||||||
|
})),
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
filename: "cyberchef.htm",
|
filename: "cyberchef.htm",
|
||||||
template: "./src/web/html/index.html",
|
template: "./src/web/html/index.html",
|
||||||
compileTime: compileTime,
|
compileTime: compileTime,
|
||||||
version: pkg.version,
|
version: pkg.version + "s",
|
||||||
inline: true,
|
inline: true,
|
||||||
minify: {
|
minify: {
|
||||||
removeComments: true,
|
removeComments: true,
|
||||||
|
|
|
@ -382,10 +382,13 @@ ControlsWaiter.prototype.supportButtonClick = function(e) {
|
||||||
const saveLink = this.generateStateUrl(true, true, null, "https://gchq.github.io/CyberChef/");
|
const saveLink = this.generateStateUrl(true, true, null, "https://gchq.github.io/CyberChef/");
|
||||||
|
|
||||||
if (reportBugInfo) {
|
if (reportBugInfo) {
|
||||||
reportBugInfo.innerHTML = "* Version: " + PKG_VERSION + "\n" +
|
reportBugInfo.innerHTML = `* Version: ${PKG_VERSION + (typeof INLINE === "undefined" ? "" : "s")}
|
||||||
"* Compile time: " + COMPILE_TIME + "\n" +
|
* Compile time: ${COMPILE_TIME}
|
||||||
"* User-Agent: \n" + navigator.userAgent + "\n" +
|
* User-Agent:
|
||||||
"* [Link to reproduce](" + saveLink + ")\n\n";
|
${navigator.userAgent}
|
||||||
|
* [Link to reproduce](${saveLink})
|
||||||
|
|
||||||
|
`;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue