How to use the localStorage function from global

Find comprehensive JavaScript global.localStorage code examples handpicked from public code repositorys.

95
96
97
98
99
100
101
102
103
 * td.trackEvent('willbetracked') // will send td_ip and td_client_id; td_global_id will also be sent if set.
 */
exports.setSignedMode = function setSignedMode () {
  if (this.client.storeConsentByLocalStorage) {
    if (!misc.isLocalStorageAccessible()) return this
    global.localStorage.setItem(SIGNEDMODECOOKIE, 'true')
  } else {
    setCookie(this.client.storage, SIGNEDMODECOOKIE, 'true')
  }
fork icon30
star icon65
watch icon93

+ 47 other calls in file