editor: remove grayed logic and styles so background color is not lost on disconnect/reconnect.

This commit is contained in:
John McLear 2021-02-06 09:58:10 +00:00 committed by GitHub
parent 8b28e00784
commit 5f58ce14d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 5 deletions

View file

@ -696,7 +696,6 @@ function Ace2Inner() {
sideDiv.parentNode.classList.toggle('line-numbers-hidden', !hasLineNumbers);
fixView();
},
grayedout: (val) => outerWin.document.body.classList.toggle('grayedout', !!val),
dmesg: () => { dmesg = window.dmesg = value; },
userauthor: (value) => {
thisAuthor = String(value);

View file

@ -161,7 +161,6 @@ const padeditor = (() => {
},
disable: () => {
if (self.ace) {
self.ace.setProperty('grayedOut', true);
self.ace.setEditable(false);
}
},