webapp: Remove not required cast to string

This commit is contained in:
Thomas Basler 2024-03-15 19:54:29 +01:00
parent a0d0aec677
commit 3138e28cdf

View File

@ -76,14 +76,14 @@ export default defineComponent({
}, },
productionYear() { productionYear() {
return() => { return() => {
return ((parseInt(this.devInfoList.serial.toString(), 16) >> (7 * 4)) & 0xF) + 2014; return ((parseInt(this.devInfoList.serial, 16) >> (7 * 4)) & 0xF) + 2014;
} }
}, },
productionWeek() { productionWeek() {
return() => { return() => {
return ((parseInt(this.devInfoList.serial.toString(), 16) >> (5 * 4)) & 0xFF).toString(16); return ((parseInt(this.devInfoList.serial, 16) >> (5 * 4)) & 0xFF).toString(16);
} }
} }
} }
}); });
</script> </script>