get rid of console spam and chrome logic
This commit is contained in:
1 parent
3fe9f82baf
commit
bdb7c02b9d
2 files changed
+12
-110
No files matched your search
+11
-68
@@ -2,15 +2,6 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
if (navigator.userAgent.indexOf('Chrome') > -1)
|
|
||||||
{
|
|
||||||
var ischrome = true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
var ischrome = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// updated by a timer looping function, based on local storage set by the options page
|
// updated by a timer looping function, based on local storage set by the options page
|
||||||
// we only use a tiny number of settings here
|
// we only use a tiny number of settings here
|
||||||
|
|
||||||
@@ -402,15 +393,7 @@ function stdrule_deconjugate_inner(my_form, my_rule)
|
|||||||
return;
|
return;
|
||||||
// tag doesn't match
|
// tag doesn't match
|
||||||
if(my_form.tags.length > 0 && my_form.tags[my_form.tags.length-1] != my_rule.con_tag)
|
if(my_form.tags.length > 0 && my_form.tags[my_form.tags.length-1] != my_rule.con_tag)
|
||||||
{
|
|
||||||
if(false)//my_rule.detail=="potential")
|
|
||||||
{
|
|
||||||
//console.log("Returning from deconjugation: tag doesn't match");
|
|
||||||
//console.log(my_form);
|
|
||||||
//console.log(my_rule);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
let newtext = my_form.text.substring(0, my_form.text.length-my_rule.con_end.length)+my_rule.dec_end;
|
let newtext = my_form.text.substring(0, my_form.text.length-my_rule.con_end.length)+my_rule.dec_end;
|
||||||
|
|
||||||
@@ -608,7 +591,6 @@ function deconjugate(mytext)
|
|||||||
// building a list of all matches
|
// building a list of all matches
|
||||||
function build_lookup_comb(forms)
|
function build_lookup_comb(forms)
|
||||||
{
|
{
|
||||||
console.log("in build_lookup_comb");
|
|
||||||
// FIXME: dumpster fire that shouldn't be anywhere near as complicated as I made it
|
// FIXME: dumpster fire that shouldn't be anywhere near as complicated as I made it
|
||||||
|
|
||||||
// This is the only part of this function that doesn't look like a garbage fire.
|
// This is the only part of this function that doesn't look like a garbage fire.
|
||||||
@@ -695,7 +677,6 @@ function build_lookup_comb(forms)
|
|||||||
|
|
||||||
function add_epwing_info(lookups)
|
function add_epwing_info(lookups)
|
||||||
{
|
{
|
||||||
console.log("in add_epwing_info");
|
|
||||||
for(let lookup of lookups)
|
for(let lookup of lookups)
|
||||||
{
|
{
|
||||||
for(let entry of lookup.result)
|
for(let entry of lookup.result)
|
||||||
@@ -719,9 +700,6 @@ function add_epwing_info(lookups)
|
|||||||
{
|
{
|
||||||
let possibilities = copy_gen(lookup_epwing_kan.get(text));
|
let possibilities = copy_gen(lookup_epwing_kan.get(text));
|
||||||
|
|
||||||
//console.log(text);
|
|
||||||
//console.log(possibilities);
|
|
||||||
|
|
||||||
// FIXME this is disgusting
|
// FIXME this is disgusting
|
||||||
let priority = [];
|
let priority = [];
|
||||||
for(let reading of entry.r_ele)
|
for(let reading of entry.r_ele)
|
||||||
@@ -742,8 +720,6 @@ function add_epwing_info(lookups)
|
|||||||
possibilities = priority.concat(possibilities);
|
possibilities = priority.concat(possibilities);
|
||||||
priority = [];
|
priority = [];
|
||||||
|
|
||||||
//console.log(possibilities);
|
|
||||||
|
|
||||||
for(let wing of possibilities)
|
for(let wing of possibilities)
|
||||||
{
|
{
|
||||||
let epw = copy(epwing[wing]);
|
let epw = copy(epwing[wing]);
|
||||||
@@ -848,7 +824,6 @@ function add_epwing_info(lookups)
|
|||||||
entry.epwing["z"] = epwing[0];
|
entry.epwing["z"] = epwing[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log("about to exit add_epwing_info");
|
|
||||||
return lookups;
|
return lookups;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1000,7 +975,6 @@ function sort_results(text, results)
|
|||||||
// FIXME: prefer short deconjugations to long deconjugations, not just no deconjugations to any deconjugations
|
// FIXME: prefer short deconjugations to long deconjugations, not just no deconjugations to any deconjugations
|
||||||
if(entry.deconj)
|
if(entry.deconj)
|
||||||
entry.priority -= 1;
|
entry.priority -= 1;
|
||||||
//console.log(entry);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
results.sort((a,b)=>
|
results.sort((a,b)=>
|
||||||
@@ -1047,8 +1021,6 @@ function restrict_by_text(entry, text)
|
|||||||
{
|
{
|
||||||
// deep clone lol (we should probably do this WAY earlier)
|
// deep clone lol (we should probably do this WAY earlier)
|
||||||
let term = copy(entry);
|
let term = copy(entry);
|
||||||
//console.log(entry);
|
|
||||||
//console.log(term);
|
|
||||||
if(!term.found) // bogus lookup
|
if(!term.found) // bogus lookup
|
||||||
return term;
|
return term;
|
||||||
|
|
||||||
@@ -1352,7 +1324,6 @@ function lookup_indirect(text, time, divexisted, alternatives_mode, strict_alter
|
|||||||
if(results.length > 0)
|
if(results.length > 0)
|
||||||
first = false;
|
first = false;
|
||||||
}
|
}
|
||||||
//console.log(results);
|
|
||||||
if(results.length > 0)
|
if(results.length > 0)
|
||||||
return skip_rereferenced_entries(results);
|
return skip_rereferenced_entries(results);
|
||||||
}
|
}
|
||||||
@@ -1483,29 +1454,18 @@ function clipboard_hook(tab)
|
|||||||
let platform = "";
|
let platform = "";
|
||||||
async function get_real_platform()
|
async function get_real_platform()
|
||||||
{
|
{
|
||||||
if (!ischrome)
|
let platformInfo = await browser.runtime.getPlatformInfo();
|
||||||
{
|
if(platformInfo)
|
||||||
let platformInfo = await browser.runtime.getPlatformInfo();
|
platform = platformInfo.os;
|
||||||
if(platformInfo)
|
console.log(`platform is ${platform}`);
|
||||||
platform = platformInfo.os;
|
|
||||||
console.log(`platform is ${platform}`);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
platform = "win";
|
|
||||||
console.log(`on chrome, didn't check platform; assuming desktop`);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
get_real_platform();
|
get_real_platform();
|
||||||
|
|
||||||
//console.log("setting message listener");
|
|
||||||
browser.runtime.onMessage.addListener((req, sender) =>
|
browser.runtime.onMessage.addListener((req, sender) =>
|
||||||
{
|
{
|
||||||
if (req.type == "search")
|
if (req.type == "search")
|
||||||
{
|
{
|
||||||
let asdf = lookup_indirect(req.text, req.time, req.divexisted, req.alternatives_mode, req.strict_alternatives);
|
let asdf = lookup_indirect(req.text, req.time, req.divexisted, req.alternatives_mode, req.strict_alternatives);
|
||||||
console.log("got out of lookup_indirect");
|
|
||||||
console.log(asdf);
|
|
||||||
return Promise.resolve({"response" : asdf});
|
return Promise.resolve({"response" : asdf});
|
||||||
}
|
}
|
||||||
else if (req.type == "platform")
|
else if (req.type == "platform")
|
||||||
@@ -1526,39 +1486,22 @@ browser.runtime.onMessage.addListener((req, sender) =>
|
|||||||
}
|
}
|
||||||
else if (req.type == "ankiconnect_mine")
|
else if (req.type == "ankiconnect_mine")
|
||||||
{
|
{
|
||||||
console.log(req.command);
|
|
||||||
let xhr = new XMLHttpRequest();
|
let xhr = new XMLHttpRequest();
|
||||||
xhr.open("POST", req.host, true);
|
xhr.open("POST", req.host, true);
|
||||||
//xhr.setRequestHeader('Content-type','application/json; charset=utf-8');
|
//xhr.setRequestHeader('Content-type','application/json; charset=utf-8');
|
||||||
xhr.addEventListener('load', () =>
|
xhr.addEventListener('load', () =>
|
||||||
{
|
{
|
||||||
console.log(xhr.responseText);
|
|
||||||
let response = JSON.parse(xhr.responseText);
|
let response = JSON.parse(xhr.responseText);
|
||||||
console.log(response);
|
|
||||||
});
|
});
|
||||||
xhr.send(req.command);
|
xhr.send(req.command);
|
||||||
}
|
}
|
||||||
return Promise.resolve(undefined);
|
return Promise.resolve(undefined);
|
||||||
});
|
});
|
||||||
//console.log("set message listener");
|
|
||||||
|
|
||||||
if (!ischrome)
|
browser.contextMenus.create({
|
||||||
{
|
id: "nazeka-toggle",
|
||||||
browser.contextMenus.create({
|
title: "Toggle Nazeka",
|
||||||
id: "nazeka-toggle",
|
contexts: ["page", "selection"],
|
||||||
title: "Toggle Nazeka",
|
documentUrlPatterns: ["moz-extension://*/reader.html"],
|
||||||
contexts: ["page", "selection"],
|
onclick: toggle_enabled
|
||||||
documentUrlPatterns: ["moz-extension://*/reader.html"],
|
});
|
||||||
onclick: toggle_enabled
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
browser.contextMenus.create({
|
|
||||||
id: "nazeka-toggle",
|
|
||||||
title: "Toggle Nazeka",
|
|
||||||
contexts: ["page", "selection"],
|
|
||||||
documentUrlPatterns: ["chrome-extension://*/reader.html"],
|
|
||||||
onclick: toggle_enabled
|
|
||||||
});
|
|
||||||
}
|
|
||||||
+1
-42
@@ -409,8 +409,6 @@ function clip(str)
|
|||||||
// note that we can get multiple lookups and this function only handles a single lookup
|
// note that we can get multiple lookups and this function only handles a single lookup
|
||||||
function build_div_inner(text, result, moreText, index, first_of_many = false)
|
function build_div_inner(text, result, moreText, index, first_of_many = false)
|
||||||
{
|
{
|
||||||
//console.log("building div for " + text);
|
|
||||||
//console.log(result);
|
|
||||||
let temp = document.createElement("div");
|
let temp = document.createElement("div");
|
||||||
temp.style.position = "relative";
|
temp.style.position = "relative";
|
||||||
// the "Looked up XXXX" text
|
// the "Looked up XXXX" text
|
||||||
@@ -430,9 +428,6 @@ function build_div_inner(text, result, moreText, index, first_of_many = false)
|
|||||||
{
|
{
|
||||||
moreText_end = moreText_end.substring(0, 3)+"…";
|
moreText_end = moreText_end.substring(0, 3)+"…";
|
||||||
}
|
}
|
||||||
//console.log(moreText);
|
|
||||||
//console.log(index);
|
|
||||||
//console.log(text);
|
|
||||||
|
|
||||||
let original_inner = document.createElement("span");
|
let original_inner = document.createElement("span");
|
||||||
original_inner.className = "nazeka_lookup";
|
original_inner.className = "nazeka_lookup";
|
||||||
@@ -693,7 +688,6 @@ function build_div_inner(text, result, moreText, index, first_of_many = false)
|
|||||||
|
|
||||||
if(term.deconj)
|
if(term.deconj)
|
||||||
{
|
{
|
||||||
//console.log(term.deconj);
|
|
||||||
let deconj = "";
|
let deconj = "";
|
||||||
let first = true;
|
let first = true;
|
||||||
for(let form of term.deconj)
|
for(let form of term.deconj)
|
||||||
@@ -980,8 +974,6 @@ function build_div_compound (results, moreText, index)
|
|||||||
{
|
{
|
||||||
lastMoreText = moreText;
|
lastMoreText = moreText;
|
||||||
last_displayed = results;
|
last_displayed = results;
|
||||||
//console.log("Displaying:");
|
|
||||||
//print_object(result);
|
|
||||||
let middle = build_div_intermediary();
|
let middle = build_div_intermediary();
|
||||||
let first = true;
|
let first = true;
|
||||||
for(let lookup of results)
|
for(let lookup of results)
|
||||||
@@ -1303,7 +1295,6 @@ function grab_more_text(textNode, direction = 1)
|
|||||||
|
|
||||||
function grab_text(textNode, offset, elemental)
|
function grab_text(textNode, offset, elemental)
|
||||||
{
|
{
|
||||||
//console.log("found text");
|
|
||||||
let text = "";
|
let text = "";
|
||||||
let moreText = "";
|
let moreText = "";
|
||||||
if(elemental)
|
if(elemental)
|
||||||
@@ -1325,9 +1316,6 @@ function grab_text(textNode, offset, elemental)
|
|||||||
if(settings.ignore_linebreaks)
|
if(settings.ignore_linebreaks)
|
||||||
moreText = moreText.replace(/\n/g, "");
|
moreText = moreText.replace(/\n/g, "");
|
||||||
|
|
||||||
//console.log("more (orig): " + moreText);
|
|
||||||
//console.log("less (orig): " + text);
|
|
||||||
|
|
||||||
let index = moreText.lastIndexOf(text);
|
let index = moreText.lastIndexOf(text);
|
||||||
|
|
||||||
let leftwards = 0;
|
let leftwards = 0;
|
||||||
@@ -1345,9 +1333,6 @@ function grab_text(textNode, offset, elemental)
|
|||||||
|
|
||||||
index = -leftwards;
|
index = -leftwards;
|
||||||
|
|
||||||
//console.log("more: " + moreText);
|
|
||||||
//console.log("less: " + text);
|
|
||||||
|
|
||||||
// grab text from later and surrounding DOM nodes
|
// grab text from later and surrounding DOM nodes
|
||||||
text = moreText.substring(index);
|
text = moreText.substring(index);
|
||||||
return [text, moreText, index];
|
return [text, moreText, index];
|
||||||
@@ -1400,9 +1385,7 @@ function update(event)
|
|||||||
if(platform == "android" && Date.now() - last_manual_interaction < 150)
|
if(platform == "android" && Date.now() - last_manual_interaction < 150)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//console.log("---- entry to word lookup at " + Date.now());
|
|
||||||
time_of_last = Date.now();
|
time_of_last = Date.now();
|
||||||
//console.log("searching for text");
|
|
||||||
let textNode;
|
let textNode;
|
||||||
let offset;
|
let offset;
|
||||||
let hitrect;
|
let hitrect;
|
||||||
@@ -1413,7 +1396,6 @@ function update(event)
|
|||||||
function acceptable_element(node)
|
function acceptable_element(node)
|
||||||
{
|
{
|
||||||
if(!textNode) return false;
|
if(!textNode) return false;
|
||||||
//console.log(node);
|
|
||||||
if(textNode.nodeType != 1)
|
if(textNode.nodeType != 1)
|
||||||
return false;
|
return false;
|
||||||
if(textNode.tagName.toLowerCase() == "textarea")
|
if(textNode.tagName.toLowerCase() == "textarea")
|
||||||
@@ -1474,13 +1456,11 @@ function update(event)
|
|||||||
textNode = range.startContainer;
|
textNode = range.startContainer;
|
||||||
offset = range.startOffset;
|
offset = range.startOffset;
|
||||||
hitrect = range.getBoundingClientRect();
|
hitrect = range.getBoundingClientRect();
|
||||||
console.log(hitrect);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// sticky mode and android need to break out on parent detection
|
// sticky mode and android need to break out on parent detection
|
||||||
if(ele && !ele.contains(textNode) && platform != "android" && (!settings.sticky || get_doc().body.getElementsByClassName("nazeka_mining_ui").length != 0))
|
if(ele && !ele.contains(textNode) && platform != "android" && (!settings.sticky || get_doc().body.getElementsByClassName("nazeka_mining_ui").length != 0))
|
||||||
{
|
{
|
||||||
console.log("not parent");
|
|
||||||
textNode = undefined;
|
textNode = undefined;
|
||||||
offset = undefined;
|
offset = undefined;
|
||||||
hitrect = undefined;
|
hitrect = undefined;
|
||||||
@@ -1488,19 +1468,15 @@ function update(event)
|
|||||||
// break out if the mouse isn't actually over the hit rectangle
|
// break out if the mouse isn't actually over the hit rectangle
|
||||||
if(hitrect && (x > hitrect.right+5 || x < hitrect.left-5+xoffset || y > hitrect.bottom+5 || y < hitrect.top-5+yoffset))
|
if(hitrect && (x > hitrect.right+5 || x < hitrect.left-5+xoffset || y > hitrect.bottom+5 || y < hitrect.top-5+yoffset))
|
||||||
{
|
{
|
||||||
console.log("missed");
|
|
||||||
console.log([x, y, x+offset, y+offset, hitrect]);
|
|
||||||
textNode = undefined;
|
textNode = undefined;
|
||||||
offset = undefined;
|
offset = undefined;
|
||||||
hitrect = undefined;
|
hitrect = undefined;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
console.log("first try");
|
|
||||||
hitpage(event.clientX, search_x_offset, event.clientY);
|
hitpage(event.clientX, search_x_offset, event.clientY);
|
||||||
// try without the offset
|
// try without the offset
|
||||||
if (textNode == undefined || (textNode.nodeType != 3 && !acceptable_element(textNode)))
|
if (textNode == undefined || (textNode.nodeType != 3 && !acceptable_element(textNode)))
|
||||||
{
|
{
|
||||||
console.log("retry");
|
|
||||||
hitpage(event.clientX, 0, event.clientY);
|
hitpage(event.clientX, 0, event.clientY);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1584,10 +1560,8 @@ function update(event)
|
|||||||
|
|
||||||
function update_touch(event)
|
function update_touch(event)
|
||||||
{
|
{
|
||||||
//console.log("touch event triggered");
|
|
||||||
if(event.touches)
|
if(event.touches)
|
||||||
{
|
{
|
||||||
//console.log("receiving touch event");
|
|
||||||
update(event.touches[0]);
|
update(event.touches[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1613,7 +1587,6 @@ async function mine_to_storage(object)
|
|||||||
let cards = (await browser.storage.local.get("cards")).cards;
|
let cards = (await browser.storage.local.get("cards")).cards;
|
||||||
if(!cards)
|
if(!cards)
|
||||||
cards = [];
|
cards = [];
|
||||||
//console.log(cards);
|
|
||||||
cards.push(object);
|
cards.push(object);
|
||||||
browser.storage.local.set({cards:cards});
|
browser.storage.local.set({cards:cards});
|
||||||
}
|
}
|
||||||
@@ -1703,12 +1676,8 @@ async function mine_to_ankiconnect_with_base64_audio(object, audiofname, audioda
|
|||||||
};
|
};
|
||||||
let audioadded = false;
|
let audioadded = false;
|
||||||
let fields = {};
|
let fields = {};
|
||||||
console.log(storage["livemining_fields"]);
|
|
||||||
console.log("starting loop");
|
|
||||||
for(let pair of storage["livemining_fields"])
|
for(let pair of storage["livemining_fields"])
|
||||||
{
|
{
|
||||||
console.log("start of iteration");
|
|
||||||
console.log(pair);
|
|
||||||
if(pair[1] != "audio_anki" && object_keys.includes(pair[1]))
|
if(pair[1] != "audio_anki" && object_keys.includes(pair[1]))
|
||||||
fields[pair[0]] = String(object[pair[1]]);
|
fields[pair[0]] = String(object[pair[1]]);
|
||||||
if(pair[1] == "audio_anki")
|
if(pair[1] == "audio_anki")
|
||||||
@@ -1725,7 +1694,6 @@ async function mine_to_ankiconnect_with_base64_audio(object, audiofname, audioda
|
|||||||
"data": audiodata
|
"data": audiodata
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
console.log("starting command");
|
|
||||||
send_ankiconnect_command(storage["livemining_host"], mediafilecommand);
|
send_ankiconnect_command(storage["livemining_host"], mediafilecommand);
|
||||||
audioadded = true;
|
audioadded = true;
|
||||||
}
|
}
|
||||||
@@ -1738,23 +1706,18 @@ async function mine_to_ankiconnect_with_base64_audio(object, audiofname, audioda
|
|||||||
else
|
else
|
||||||
fields[pair[0]] = "";
|
fields[pair[0]] = "";
|
||||||
}
|
}
|
||||||
console.log("end of iteration");
|
|
||||||
}
|
}
|
||||||
console.log("ending loop");
|
|
||||||
note["params"]["note"]["fields"] = fields;
|
note["params"]["note"]["fields"] = fields;
|
||||||
send_ankiconnect_command(storage["livemining_host"], note);
|
send_ankiconnect_command(storage["livemining_host"], note);
|
||||||
console.log("test");
|
|
||||||
}, (e) => {console.log(e);});
|
}, (e) => {console.log(e);});
|
||||||
}
|
}
|
||||||
|
|
||||||
async function mine_to_ankiconnect(object)
|
async function mine_to_ankiconnect(object)
|
||||||
{
|
{
|
||||||
console.log(object);
|
|
||||||
let audio_base64 = "";
|
let audio_base64 = "";
|
||||||
if(object.audio !== undefined)
|
if(object.audio !== undefined)
|
||||||
{
|
{
|
||||||
let url = "https://assets.languagepod101.com/dictionary/japanese/audiomp3.php?kana=" + object.audio[0] + "&kanji=" + object.audio[1];
|
let url = "https://assets.languagepod101.com/dictionary/japanese/audiomp3.php?kana=" + object.audio[0] + "&kanji=" + object.audio[1];
|
||||||
console.log(url);
|
|
||||||
let reader = new FileReader();
|
let reader = new FileReader();
|
||||||
reader.onload = () =>
|
reader.onload = () =>
|
||||||
{
|
{
|
||||||
@@ -1800,8 +1763,6 @@ function mine(highlight)
|
|||||||
if(readings.length >= 2)
|
if(readings.length >= 2)
|
||||||
readings = readings.substring(1, readings.length-1);
|
readings = readings.substring(1, readings.length-1);
|
||||||
|
|
||||||
console.log(audiostuff);
|
|
||||||
|
|
||||||
if(audiostuff !== undefined)
|
if(audiostuff !== undefined)
|
||||||
{
|
{
|
||||||
audio_kanji = audiostuff[1];
|
audio_kanji = audiostuff[1];
|
||||||
@@ -1861,10 +1822,8 @@ function keytest(event)
|
|||||||
{
|
{
|
||||||
while(get_doc().body.getElementsByClassName("nazeka_mining_ui").length)
|
while(get_doc().body.getElementsByClassName("nazeka_mining_ui").length)
|
||||||
{
|
{
|
||||||
console.log("deleting");
|
|
||||||
get_doc().body.getElementsByClassName("nazeka_mining_ui")[0].remove();
|
get_doc().body.getElementsByClassName("nazeka_mining_ui")[0].remove();
|
||||||
}
|
}
|
||||||
console.log("deleted");
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -1872,7 +1831,7 @@ function keytest(event)
|
|||||||
return;
|
return;
|
||||||
while(get_doc().body.getElementsByClassName("nazeka_mining_ui").length)
|
while(get_doc().body.getElementsByClassName("nazeka_mining_ui").length)
|
||||||
get_doc().body.getElementsByClassName("nazeka_mining_ui")[0].remove();
|
get_doc().body.getElementsByClassName("nazeka_mining_ui")[0].remove();
|
||||||
//console.log("mining request");
|
|
||||||
let mydiv = get_div().cloneNode(true);
|
let mydiv = get_div().cloneNode(true);
|
||||||
delete_div();
|
delete_div();
|
||||||
set_sticky_styles(mydiv);
|
set_sticky_styles(mydiv);
|
||||||
|
|||||||
Reference in new issue
Block a user