タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

Webとcompatに関するRockridgeのブックマーク (1)

  • How not to feature detect

    Bug 1331638 is a good example of why feature detection is important, but also a good reminder to test in enviroments where the feature totally doesn’t exist. A website (Twitter, in this example) tries to do the right thing and check for support before throwing notifications at you: this.isSupported = function() { var a = "PushManager" in window, b = this.getNotificationPermission() !== "denied", c

    Rockridge
    Rockridge 2017/02/07
    FirefoxでNotifications APIを無効化しているとWeb版Twitterの各種ボタンが機能しない問題が、2017年1月下旬、Twitter側で修正された。本記事ではTwitterの機能検出のコードのどこに問題があったかを説明している。
  • 1