Skip to content

TypeError on Safari in private mode #110

@m00s

Description

@m00s

I have an angular application that integrates the print.io widget.
I'm using pio.latest.v2 script and I noticed that on Safari Version 9.1 (11601.5.17.1) on Mac OS it throws this error after the script is loaded:

TypeError: (localStorage).keys().filter(function(a){return 0!==a.indexOf("pio.")}).each is not a function. (In '(localStorage).keys().filter(function(a){return 0!==a.indexOf("pio.")}).each(function(a){return localStorage.removeItem(a),!0})', '(localStorage).keys().filter(function(a){return 0!==a.indexOf("pio.")}).each' is undefined)_

It may be related to how safari handle the LS in private browsing, it raise a QuotaExceededError: DOM Exception 22 only if you try to set a value, otherwise LS looks supported

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions