Created
February 6, 2019 23:40
-
-
Save markdon/02e1540d5ef445f467a6e566500092ae to your computer and use it in GitHub Desktop.
Download the currently open board as a .json file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetch(`./node/${Boards.current.boardNode.id}`).then(response=>response.json()).then(boardData=> { | |
const element = document.createElement('a'); | |
element.setAttribute('href', 'data:application/json;charset=utf-8,' + encodeURIComponent(JSON.stringify(boardData))); | |
element.setAttribute('download', boardData.name); | |
element.style.display = 'none'; | |
document.body.appendChild(element); | |
element.click(); | |
document.body.removeChild(element); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Open the browser console (F12), paste in the above code and press enter to download a file containing all data for a board.
Does not run in IE11.