Skip to content

Commit

Permalink
fixed copy to clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
assafelovic committed Nov 13, 2023
1 parent 2ef7523 commit eddd4d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ <h2>Research Report</h2>
<div id="reportContainer"></div>
<div id="reportActions">
<div class="alert alert-info" role="alert" id="status"></div>
<a onclick="GPTResearcher.copyToClipboard()" class="btn btn-secondary mt-3" style="margin-right: 10px;">Copy to clipboard</a>
<a id="copyToClipboard" onclick="GPTResearcher.copyToClipboard()" class="btn btn-secondary mt-3" style="margin-right: 10px;">Copy to clipboard</a>
<a id="downloadLink" href="#" class="btn btn-secondary mt-3" target="_blank">Download as PDF</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const GPTResearcher = (() => {
const init = () => {
// Not sure, but I think it would be better to add event handlers here instead of in the HTML
//document.getElementById("startResearch").addEventListener("click", startResearch);
//document.getElementById("copyToClipboard").addEventListener("click", copyToClipboard);
document.getElementById("copyToClipboard").addEventListener("click", copyToClipboard);

updateState("initial");
}
Expand Down

0 comments on commit eddd4d8

Please sign in to comment.