mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-08-15 02:39:13 +02:00
Add a 'What's New?' tab as a core plugin, which fetches the contents of CHANGES.md from the app's release branch
This commit is contained in:
@ -1284,7 +1284,7 @@ document.querySelectorAll('.popup').forEach(popup => {
|
||||
})
|
||||
|
||||
var tabElements = [];
|
||||
document.querySelectorAll(".tab").forEach(tab => {
|
||||
function linkTabContents(tab) {
|
||||
var name = tab.id.replace("tab-", "");
|
||||
var content = document.getElementById(`tab-content-${name}`)
|
||||
tabElements.push({
|
||||
@ -1305,7 +1305,9 @@ document.querySelectorAll(".tab").forEach(tab => {
|
||||
content.classList.toggle("active")
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
document.querySelectorAll(".tab").forEach(linkTabContents)
|
||||
|
||||
window.addEventListener("beforeunload", function(e) {
|
||||
const msg = "Unsaved pictures will be lost!";
|
||||
|
Reference in New Issue
Block a user