angular-local-storage icon indicating copy to clipboard operation
angular-local-storage copied to clipboard

Cannot read property 'indexOf' of null

Open binarykitchen opened this issue 8 years ago • 0 comments

Thrown along these lines

      // Check if the key is within our prefix namespace.
      var isKeyPrefixOurs = function (key) {
        return key.indexOf(prefix) === 0;
      };

when using this user agent

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36

Probably want to add a null check?

binarykitchen avatar Dec 22 '16 20:12 binarykitchen