assume that the origin error is fixed

This commit is contained in:
buzz-lightsnack-2007 2024-04-13 23:39:01 +08:00
parent 7ecbc84aa5
commit 82a8017b5d

View file

@ -297,8 +297,8 @@ export default class windowman {
// Get the corresponding storage data. // Get the corresponding storage data.
let data = {}; let data = {};
data[`source`] = input_element.getAttribute(`data-store`); data[`source`] = input_element.getAttribute(`data-store`);
data[`origin`] = (input_element.hasAttribute(`data-store-location`)) ? parseInt(input_element.getAttribute(`data-store-location`)) : -1 // data[`origin`] = (input_element.hasAttribute(`data-store-location`)) ? parseInt(input_element.getAttribute(`data-store-location`)) : -1
data[`value`] = secretariat.read(data[`source`], data[`origin`]); data[`value`] = secretariat.read(data[`source`]);
data[`value`].then(async function(value) { data[`value`].then(async function(value) {
switch (input_element.getAttribute(`type`).toLowerCase()) { switch (input_element.getAttribute(`type`).toLowerCase()) {