fix some useless console.log

This commit is contained in:
JFH
2021-05-15 16:20:13 +02:00
parent d73e5cad5b
commit 9a68ba6358
13 changed files with 6 additions and 73 deletions

View File

@@ -34,7 +34,6 @@ async function processResults (url) {
const r = await fetch(url);
const json = await r.json();
// console.log('json', json);
if (!json || json.msg !== 'success') {
// Todo: This could use a generic alert library instead
@@ -87,7 +86,6 @@ async function processResults (url) {
async click (e) {
e.preventDefault();
const { value: svgurl } = this.dataset;
// console.log('this', id, svgurl);
const post = (message) => {
// Todo: Make origin customizable as set by opening window
// Todo: If dropping IE9, avoid stringifying
@@ -103,7 +101,6 @@ async function processResults (url) {
});
const result = await fetch(svgurl);
const svg = await result.text();
// console.log('url and svg', svgurl, svg);
post({
href: svgurl,
data: svg

View File

@@ -123,8 +123,6 @@ export default {
function setIcon (pos, id) {
if (id.substr(0, 1) !== '\\') { id = '\\textmarker'; }
const ci = idPrefix + pos + '_' + id.substr(1);
console.log(ci);
console.log('cur_' + pos + '_marker_list');
svgEditor.setIcon('cur_' + pos + '_marker_list', $id(ci).children);
$id(ci).classList.add('current');
const siblings = Array.prototype.filter.call($id(ci).parentNode.children, function(child){
@@ -585,7 +583,6 @@ export default {
},
selectedChanged (opts) {
// Use this to update the current selected elements
// console.log('selectChanged',opts);
selElems = opts.elems;
const markerElems = [ 'line', 'path', 'polyline', 'polygon' ];

View File

@@ -191,12 +191,11 @@ export default {
// When MathJax is loaded get the div where the math will be rendered.
MathJax.Hub.queue.Push(function () {
math = MathJax.Hub.getAllJax('#mathjax_creator')[0];
console.log(math);
mathjaxLoaded = true;
console.log('MathJax Loaded');
console.info('MathJax Loaded');
});
} catch (e) {
console.log('Failed loading MathJax.');
console.warn('Failed loading MathJax.');
// eslint-disable-next-line no-alert
alert('Failed loading MathJax. You will not be able to change the mathematics.');
}

View File

@@ -223,7 +223,6 @@ export default {
function colorChanged (el) {
const color = el.getAttribute('stroke');
const marker = getLinked(el, 'marker-start');
// console.log(marker);
if (!marker) { return; }
if (!marker.attributes.class) { return; } // not created by this extension
const ch = marker.lastElementChild;

View File

@@ -41,7 +41,6 @@ export default {
* @returns {void}
*/
(win, { data, origin }) => {
// console.log('data, origin', data, origin);
let type, content;
try {
({ type, pathID, content } = data.webappfind); // May throw if data is not an object