Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Uses history.pushState in Chrome Apps #1358

Closed

Description

@paullewis

The code feature detects history.pushState and uses that for setting the location value when doing routing. This API is not available so the call fails.

Is it worth detecting CSP & Chrome as a combination and defaulting to location.hash changes instead in this instance?

Activity

  1. vojtajina commented on Sep 13, 2012

    @vojtajina
    Contributor

    Honestly, I think this should be fixed in Chrome Apps platform.

    In meantime, people can use this as a workaround:

    angular.module('yourApp', [], function($provide) {
      $provide.decorator('$sniffer', function($delegate) {
        $delegate.history = false;
        return $delegate;
      });
    });
  2. raghavcreddy commented on Feb 2, 2016

    @raghavcreddy

    The decorator is not working anymore starting from Chrome 48.0.2564.97 (64-bit).

    Is there any workaround?

  3. gkalpak commented on Feb 2, 2016

    @gkalpak
    Member

    Let's track this on #11932.

  4. kutomer commented on Feb 3, 2016

    @kutomer

    +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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