import scriptExecute from "./scriptExecute";

export default async function (key: string, value: object) {
    const script = "return (() => { localStorage.setItem('" + key + "', '" + value + "'); }).apply(null, arguments)"
    await scriptExecute(script);
};
