small fixes
This commit is contained in:
@@ -222,6 +222,11 @@ export function startNoteEditor(adapter) {
|
||||
function accountHeaders() { return {}; }
|
||||
async function loadNoteInfo() {
|
||||
info = await adapter.loadInfo(sessionHeaders());
|
||||
const documentTitle = document.querySelector("#document-title");
|
||||
if (documentTitle && info.title) {
|
||||
documentTitle.removeAttribute("data-i18n");
|
||||
documentTitle.textContent = info.title;
|
||||
}
|
||||
globalColor = info.global_color || ""; noteColor = info.note_color || "";
|
||||
if (getAuthToken()) {
|
||||
const colors = await adapter.loadColor(accountHeaders());
|
||||
|
||||
Reference in New Issue
Block a user