Skip to content

Commit a308153

Browse files
committed
Rename shareButton -> copyButton
This is a workaround for some particularly aggressive ad blockers.
1 parent e3a61b7 commit a308153

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ <h2 class="disabled"><span id="className"></span><span id="pointsLabel"></span><
8989
<button id="resetButton" type="button">Reset</button>
9090
<button id="saveButton" type="button">Save</button>
9191
<button id="reloadButton" type="button">Reload</button>
92-
<button id="shareButton" type="button">Share URL</button>
92+
<button id="copyButton" type="button">Copy URL</button>
9393
<button id="databaseButton" type="button" onclick="window.open('./database/')">Open DB</button>
9494
</div>
9595
</div>

main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2040,7 +2040,7 @@ function handleReloadButton() {
20402040
}
20412041
}
20422042
}
2043-
function handleShareButton() {
2043+
function handleCopyButton() {
20442044
navigator.clipboard.writeText(window.location.href);
20452045
}
20462046
function onDragStart(event) {
@@ -5506,7 +5506,7 @@ $(document).ready(function() {
55065506
$("#resetButton").on("click", handleResetButton);
55075507
$("#saveButton").on("click", handleSaveButton);
55085508
$("#reloadButton").on("click", handleReloadButton);
5509-
$("#shareButton").on("click", handleShareButton);
5509+
$("#copyButton").on("click", handleCopyButton);
55105510
$("#classSelector").on("change", handleClassSelection);
55115511
$("#barbarianSelect").on("click", () => $("#classSelector").val("barbarian").change());
55125512
$("#druidSelect").on("click", () => $("#classSelector").val("druid").change());

0 commit comments

Comments
 (0)