mirror of
https://github.com/zotero/zotero.git
synced 2026-09-23 00:43:17 +00:00
Clear guidance panel before adding text
This is probably only necessary if the pref is reset manually, but this prevents duplicate text in that situation.
This commit is contained in:
parent
3ee09e8d38
commit
7ac35363e3
1 changed files with 5 additions and 0 deletions
|
|
@ -54,6 +54,11 @@
|
|||
if(!text) text = Zotero.getString("firstRunGuidance."+about);
|
||||
text = text.split("\n");
|
||||
var descriptionNode = panel.lastChild;
|
||||
|
||||
while (descriptionNode.hasChildNodes()) {
|
||||
descriptionNode.removeChild(descriptionNode.firstChild);
|
||||
}
|
||||
|
||||
while(text.length) {
|
||||
var textLine = text.shift();
|
||||
descriptionNode.appendChild(document.createTextNode(textLine));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue