Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adding config helper #51

Merged
merged 1 commit into from
Feb 4, 2023
Merged

Conversation

heliagg
Copy link
Contributor

@heliagg heliagg commented Feb 4, 2023

No description provided.

@heliagg heliagg changed the title adding config helper feat: adding config helper Feb 4, 2023
@heliagg
Copy link
Contributor Author

heliagg commented Feb 4, 2023

This makes users not complain by having an invalid config 😶

@LeagueOfPoro LeagueOfPoro merged commit 2c4d9c9 into LeagueOfPoro:master Feb 4, 2023
Comment on lines +43 to +51
var hiddenElement = document.createElement('a');

hiddenElement.href = 'data:attachment/text,' + encodeURI(toDownload);
hiddenElement.target = '_blank';
hiddenElement.download = 'config.yaml';
hiddenElement.click();
}

document.getElementById('test').addEventListener('click', download);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix indent

<label for="test">Or alternatively: </label>
<button name="test" id="test">Download</button>
<script>
var toDownload = "accounts:"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend using either let or const instead of var

@DjordyKoert
Copy link
Contributor

@LeagueOfPoro I recommend fixes these small changes (maybe revert?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants