diff --git a/packages/editor-ui/src/constants.ts b/packages/editor-ui/src/constants.ts index b68ebf45cd..f3a3b30bab 100644 --- a/packages/editor-ui/src/constants.ts +++ b/packages/editor-ui/src/constants.ts @@ -67,5 +67,5 @@ if (!window.localStorage.getItem('JSPLUMB_FLOWCHART_STUB')) { window.localStorage.setItem('JSPLUMB_FLOWCHART_STUB', '50'); } // @ts-ignore -const _JSPLUMB_FLOWCHART_STUB = parseInt(window.localStorage.getItem('JSPLUMB_FLOWCHART_STUB')); +const _JSPLUMB_FLOWCHART_STUB = parseInt(window.localStorage.getItem('JSPLUMB_FLOWCHART_STUB'), 10); export const JSPLUMB_FLOWCHART_STUB = _JSPLUMB_FLOWCHART_STUB; diff --git a/packages/editor-ui/src/views/NodeView.vue b/packages/editor-ui/src/views/NodeView.vue index e75d09bd77..f0363d6dde 100644 --- a/packages/editor-ui/src/views/NodeView.vue +++ b/packages/editor-ui/src/views/NodeView.vue @@ -1299,7 +1299,7 @@ export default mixins( window.localStorage.setItem('CURVINESS', '150'); } // @ts-ignore - const _CURVINESS = parseInt(window.localStorage.getItem('CURVINESS')); + const _CURVINESS = parseInt(window.localStorage.getItem('CURVINESS'), 10); if (!window.localStorage.getItem('OUTLINE_STROKE_COLOR')) { window.localStorage.setItem('OUTLINE_STROKE_COLOR', 'transparent'); @@ -1311,7 +1311,7 @@ export default mixins( window.localStorage.setItem('OUTLINE_STROKE_WIDTH', '12'); } // @ts-ignore - const _OUTLINE_STROKE_WIDTH = parseInt(window.localStorage.getItem('OUTLINE_STROKE_WIDTH')); + const _OUTLINE_STROKE_WIDTH = parseInt(window.localStorage.getItem('OUTLINE_STROKE_WIDTH'), 10); if (!window.localStorage.getItem('ALWAYS_RESPECT_STUB')) { window.localStorage.setItem('ALWAYS_RESPECT_STUB', 'false');