We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 347d28c + 5f2803a commit 4da69e5Copy full SHA for 4da69e5
svelte/Main.svelte
@@ -25,7 +25,7 @@
25
onMount(() => {
26
// follow scroll
27
const interval = setInterval(() => {
28
- if (commandLogFrame.classList.contains('loading')) {
+ if (commandLogFrame.classList.contains('loading') && commandLogFrame.contentDocument.body) {
29
commandLogFrame.contentWindow.scrollTo(0, commandLogFrame.contentDocument.body.offsetHeight);
30
}
31
}, 200);
@@ -59,8 +59,13 @@
59
enableAllButtons();
60
61
62
+ let commits = null;
63
+
64
function loadCommits() {
- new Commits({
65
+ if (commits) {
66
+ commits.$destroy(); // without this, the commits iframe won't be reloaded.
67
+ }
68
+ commits = new Commits({
69
target: commitLogFrame.contentDocument.querySelector('commits'),
70
props: {
71
project: status.currentProject,
0 commit comments