Skip to content

Commit

Permalink
Merge pull request #19 from polarityio/develop
Browse files Browse the repository at this point in the history
INT-1211: Remove hard coded trailing `/` from URL option
  • Loading branch information
sarus committed Mar 5, 2024
2 parents a569782 + 841fd05 commit 001670e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ polarity.export = PolarityComponent.extend({

const recipeLinkWithoutInput =
index === 0
? `${url}/#recipe=${operationString}`
? `${url}#recipe=${operationString}`
: `${agg[index - 1].recipeLinkWithoutInput}${operationString}`;

return [
Expand All @@ -168,7 +168,7 @@ polarity.export = PolarityComponent.extend({
'fullRecipeLink',
operations.length
? operationsWithUpdatedLinks[operationsWithUpdatedLinks.length - 1].recipeLink
: `${url}/#input=${inputHash}`
: `${url}#input=${inputHash}`
);

this.set('operations', operationsWithUpdatedLinks);
Expand Down
2 changes: 1 addition & 1 deletion config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = {
'Add your CyberChef Url to open up the CyberChef dashboard for full functionality. (e.g. https://gchq.github.io/CyberChef)',
default: 'https://gchq.github.io/CyberChef',
type: 'text',
userCanEdit: true,
userCanEdit: false,
adminOnly: false
},
{
Expand Down
2 changes: 1 addition & 1 deletion config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"description": "Add your CyberChef Url to open up the CyberChef dashboard for full functionality. (e.g. https://gchq.github.io/CyberChef)",
"default": "https://gchq.github.io/CyberChef",
"type": "text",
"userCanEdit": true,
"userCanEdit": false,
"adminOnly": false
},
{
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CyberChefIntegration",
"version": "3.2.6",
"version": "3.2.7",
"main": "./integration.js",
"private": true,
"dependencies": {
Expand Down

0 comments on commit 001670e

Please sign in to comment.