mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
lint: ExportHtml.js
This commit is contained in:
parent
5718c8b360
commit
d2359be08b
1 changed files with 4 additions and 4 deletions
|
@ -75,7 +75,7 @@ const getHTMLFromAtext = async (pad, atext, authorColors) => {
|
|||
if (authorColors) {
|
||||
css += '<style>\n';
|
||||
|
||||
for (const a in apool.numToAttrib) {
|
||||
for (const a of Object.keys(apool.numToAttrib)) {
|
||||
const attr = apool.numToAttrib[a];
|
||||
|
||||
// skip non author attributes
|
||||
|
@ -106,7 +106,7 @@ const getHTMLFromAtext = async (pad, atext, authorColors) => {
|
|||
// this pad, and if yes puts its attrib id->props value into anumMap
|
||||
props.forEach((propName, i) => {
|
||||
let attrib = [propName, true];
|
||||
if (_.isArray(propName)) {
|
||||
if (Array.isArray(propName)) {
|
||||
// propName can be in the form of ['color', 'red'],
|
||||
// see hook exportHtmlAdditionalTagsWithData
|
||||
attrib = propName;
|
||||
|
@ -135,7 +135,7 @@ const getHTMLFromAtext = async (pad, atext, authorColors) => {
|
|||
|
||||
// we are not insterested on properties in the form of ['color', 'red'],
|
||||
// see hook exportHtmlAdditionalTagsWithData
|
||||
if (_.isArray(property)) {
|
||||
if (Array.isArray(property)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -154,7 +154,7 @@ const getHTMLFromAtext = async (pad, atext, authorColors) => {
|
|||
// data attributes
|
||||
const isSpanWithData = (i) => {
|
||||
const property = props[i];
|
||||
return _.isArray(property);
|
||||
return Array.isArray(property);
|
||||
};
|
||||
|
||||
const emitOpenTag = (i) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue