mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
✨ Remove leftover console.log/trace
This commit is contained in:
@@ -115,7 +115,6 @@ export function createTextSpan(textOrLineBreak, styles, attrs) {
|
||||
textOrLineBreak instanceof Text &&
|
||||
textOrLineBreak.nodeValue.length === 0
|
||||
) {
|
||||
console.trace("nodeValue", textOrLineBreak.nodeValue);
|
||||
throw new TypeError("Invalid text span child, cannot be an empty text");
|
||||
}
|
||||
|
||||
@@ -182,7 +181,6 @@ export function createVoidTextSpan(styles) {
|
||||
* @returns {HTMLSpanElement}
|
||||
*/
|
||||
export function setTextSpanStyles(element, styles) {
|
||||
console.log("setTextSpanStyles styles", element, styles);
|
||||
return setStyles(element, STYLES, styles);
|
||||
}
|
||||
|
||||
|
||||
@@ -789,7 +789,6 @@ export class SelectionController extends EventTarget {
|
||||
if (this.#savedSelection) {
|
||||
return this.#savedSelection.focusNode;
|
||||
}
|
||||
if (!this.#focusNode) console.trace("focusNode", this.#focusNode);
|
||||
return this.#focusNode;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user