aboutsummaryrefslogblamecommitdiff
path: root/tmp/api-wasm.js
blob: 50e13927e40740eed79cd722b77240b48ffa5e6f (plain) (tree)
1
2
3
4
5
6
7






                                                                         
/* WASM implementation of "api.h" interface to be used in web contexts */

export const platformDependentPersistInt = (n) =>
  localStorage.setItem("persisted", n.toString());

export const platformDependentRetrieveInt = () =>
  parseInt(localStorage.getItem("persisted"));