parent
69540a07ca
commit
7d9e37c02d
|
@ -1035,8 +1035,8 @@ async function confirm_overwrite_capability() {
|
|||
<p>JS Paint can now save over existing files.</p>
|
||||
<p>Do you want to overwrite the file?</p>
|
||||
<p>
|
||||
<input type="checkbox" id="dont-ask-me-again-checkbox"/>
|
||||
<label for="dont-ask-me-again-checkbox">Don't ask me again</label>
|
||||
<input type="checkbox" id="do-not-ask-me-again-checkbox"/>
|
||||
<label for="do-not-ask-me-again-checkbox">Don't ask me again</label>
|
||||
</p>
|
||||
`,
|
||||
buttons: [
|
||||
|
@ -1046,7 +1046,7 @@ async function confirm_overwrite_capability() {
|
|||
});
|
||||
const result = await promise;
|
||||
if (result === "overwrite") {
|
||||
acknowledged_overwrite_capability = $window.$content.find("#dont-ask-me-again-checkbox").prop("checked");
|
||||
acknowledged_overwrite_capability = $window.$content.find("#do-not-ask-me-again-checkbox").prop("checked");
|
||||
try {
|
||||
localStorage[confirmed_overwrite_key] = acknowledged_overwrite_capability;
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in New Issue