fix int/float values
This commit is contained in:
@ -1,15 +1,14 @@
|
||||
|
||||
namespace pxsim.storage {
|
||||
|
||||
function putValue(key: string, value: string) : void {
|
||||
export function putValue(key: string, value: string) : void {
|
||||
sessionStorage.setItem('simulatorValue_'+key, value);
|
||||
}
|
||||
|
||||
function putValueInt(key: string, value: number) : void {
|
||||
export function putValueInt(key: string, value: number) : void {
|
||||
sessionStorage.setItem('simulatorValue_'+key, value+"");
|
||||
}
|
||||
|
||||
|
||||
export function getValue(key: string) : string {
|
||||
if(sessionStorage.getItem('simulatorValue_'+key)) {
|
||||
return sessionStorage.getItem('simulatorValue_'+key);
|
||||
|
Reference in New Issue
Block a user