modules

ac-bundle-module-frontend-modules-storage

frontend/modules/storage.js

A module for ac-bundle-app, published by ac-bundle-module.

Available Methods: get, set

get

function(key, type) {
  if (!app.has(type)) type = "local";
  return window[type + "Storage"].getItem(key);
}

set

function(key, value, type) {
  if (!app.has(type)) type = "local";
  window[type + "Storage"].setItem(key, value);
}

Happy Coding!

Leave a Reply

Your email address will not be published. Required fields are marked *