Skip to content

Commit f153397

Browse files
committed
use more unique window exports
1 parent 28dab75 commit f153397

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/devtest/gitea-ui.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,10 @@
236236
</div>
237237
<script>
238238
document.getElementById('info-toast').addEventListener('click', () => {
239-
window.showInfo('success :)');
239+
window.giteaShowInfo('success :)');
240240
});
241241
document.getElementById('error-toast').addEventListener('click', () => {
242-
window.showError('error :(');
242+
window.giteaShowError('error :(');
243243
});
244244
</script>
245245
</div>

web_src/js/modules/toast.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ export async function showError(message, opts) {
5353

5454
// export for devtest page in development
5555
if (process.env.NODE_ENV === 'development') {
56-
window.showInfo = showInfo;
57-
window.showError = showError;
56+
window.giteaShowInfo = showInfo;
57+
window.giteaShowError = showError;
5858
}

0 commit comments

Comments
 (0)