mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
[CodeFactor] Apply fixes to commit 4ea01f3
This commit is contained in:
parent
4ea01f39b4
commit
2abe3da834
2 changed files with 11 additions and 19 deletions
|
@ -170,7 +170,8 @@ const scatterChartData = computed(() => ({
|
|||
var localSpectrum;
|
||||
//Define and generate a unique ID for canvas
|
||||
const localSpectrumID = ref("");
|
||||
localSpectrumID.value = "gridwfid-" + (Math.random() + 1).toString(36).substring(7);
|
||||
localSpectrumID.value =
|
||||
"gridwfid-" + (Math.random() + 1).toString(36).substring(7);
|
||||
onMounted(() => {
|
||||
// This code will be executed after the component is mounted to the DOM
|
||||
// You can access DOM elements or perform other initialization here
|
||||
|
@ -179,7 +180,6 @@ onMounted(() => {
|
|||
// init waterfall
|
||||
localSpectrum = initWaterfall(localSpectrumID.value);
|
||||
nextTick(() => {
|
||||
|
||||
window.addEventListener(
|
||||
"wf-data-avail",
|
||||
function (evt) {
|
||||
|
@ -189,10 +189,6 @@ onMounted(() => {
|
|||
);
|
||||
setColormap(settings.local.wf_theme.valueOf);
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
@ -187,10 +187,6 @@ export default {
|
|||
false,
|
||||
);
|
||||
setColormap(settings.local.wf_theme.valueOf);
|
||||
|
||||
|
||||
|
||||
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue