PageSourceSearch

https://careers.bmc.org/assets/common/storage-2a93f1c2.js

js bmc.org collected 2026-09-24 08:45:05 UTC 599 bytes, 26 lines download raw bytes

1export class Storage {
2  static getItem(key) {
3    return Storage.guard(() => localStorage.getItem(key));
4  }
5
6  static setItem(key, data) {
7    Storage.guard(() => localStorage.setItem(key, data));
8  }
9
10  static removeItem(key) {
11    Storage.guard(() => localStorage.removeItem(key));
12  }
13
14  static clear() {
15    localStorage.clear();
16  }
17
18  static isSupported() {
19    return typeof(js_vars) !== 'undefined' && typeof(js_vars.use_local_storage) !== 'undefined' ? js_vars.use_local_storage : true
20  }
21
22  //private
23  static guard(block) {
24    return Storage.isSupported() ? block.call() : null;
25  }
26}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.