habitlab / habitlab

Build better habits online! Tell HabitLab your goals, and it will determine the appropriate interventions via experimentation.
https://habitlab.github.io
GNU General Public License v3.0
365 stars 56 forks source link

[User Feedback] The Sign In to sync button is not working in the chrome extension #757

Open habitlab-feedback opened 4 years ago

habitlab-feedback commented 4 years ago

A user submitted the following via HabitLab's built-in Feedback form:

The Sign In to sync button is not working in the chrome extension

background_url: 'chrome-extension://obghclocpdgcekcognpkblghkedcpdgd/options.html#help'
browser: >-
  Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like
  Gecko) Chrome/84.0.4147.135 Safari/537.36
language: en-US
languages:
  - en-US
  - en
url: 'chrome-extension://obghclocpdgcekcognpkblghkedcpdgd/options.html#help'
loaded_interventions: []
enabled_interventions:
  - amazon/block_after_interval_per_visit
  - amazon/hide_recommendations
  - amazon/show_timer_banner
  - amazon/show_user_info_banner
  - amazon/toast_notifications
  - buzzfeed/block_after_interval_per_visit
  - buzzfeed/show_timer_banner
  - buzzfeed/toast_notifications
  - calm/feed_injection_positive_goal_widget
  - calm/suggest_positive_site_interstitial
  - debug/fake_intervention
  - duolingo/facebook_feed_lesson_injection
  - duolingo/facebook_replace_ads_with_lesson
  - duolingo/iqiyi_sidebar_lesson
  - duolingo/youtube_sidebar_lesson
  - facebook/block_after_interval_per_visit
  - facebook/feed_injection_timer
  - facebook/remove_clickbait
  - facebook/remove_comments
  - facebook/remove_news_feed
  - facebook/rich_notifications
  - facebook/show_timer_banner
  - facebook/show_user_info_banner
  - facebook/toast_notifications
  - generic/block_after_interval_per_visit
  - generic/show_timer_banner
  - generic/show_user_info_banner
  - generic/toast_notifications
  - generic_positive/feed_injection_positive_goal_widget
  - generic_positive/suggest_positive_site_interstitial
  - gmail/block_after_interval_per_visit
  - gmail/show_timer_banner
  - gmail/toast_notifications
  - iqiyi/prompt_before_watch
  - iqiyi/remove_sidebar_links
  - iqiyi/show_timer_banner
  - iqiyi/toast_notifications
  - netflix/banner_link_articles
  - netflix/infinite_alarm
  - netflix/link_articles
  - netflix/prompt_before_watch
  - netflix/show_timer_banner
  - netflix/stop_autoplay
  - netflix/toast_notifications
  - nytimes/feed_injection_positive_goal_widget
  - nytimes/suggest_positive_site_interstitial
  - reddit/block_after_interval_per_visit
  - reddit/edit_links
  - reddit/show_timer_banner
  - reddit/show_user_info_banner
  - reddit/toast_notifications
  - ted/feed_injection_positive_goal_widget
  - ted/suggest_positive_site_interstitial
  - twitter/block_after_interval_per_visit
  - twitter/remove_twitter_feed
  - twitter/show_timer_banner
  - twitter/toast_notifications
  - video/prompt_before_watch
  - youku/prompt_before_watch
  - youku/remove_sidebar_links
  - youku/show_timer_banner
  - youku/toast_notifications
  - youtube/block_after_interval_per_visit
  - youtube/prompt_before_watch
  - youtube/remove_comment_section
  - youtube/remove_recommended
  - youtube/remove_sidebar_links
  - youtube/show_timer_banner
  - youtube/toast_notifications
  - generated_www.quora.com/block_after_interval_per_visit
  - generated_www.quora.com/show_timer_banner
  - generated_www.quora.com/show_user_info_banner
  - generated_www.quora.com/toast_notifications
  - generated_www.instagram.com/block_after_interval_per_visit
  - generated_www.instagram.com/show_timer_banner
  - generated_www.instagram.com/show_user_info_banner
  - generated_www.instagram.com/toast_notifications
enabled_goals:
  - facebook/spend_less_time
  - reddit/spend_less_time
  - twitter/spend_less_time
  - custom/spend_less_time_www.quora.com
  - youtube/spend_less_time
  - custom/spend_less_time_www.instagram.com
devmode: false
version: 1.0.272
chrome_runtime_id: obghclocpdgcekcognpkblghkedcpdgd
mpasa commented 3 years ago

I'm experimenting the same problem with version 1.0.276. This is the error on the console:

Uncaught (in promise) TypeError: Cannot read property 'getRedirectURL' of undefined
    at chrome_get_token (options.js:1)
    at HTMLElement.ask_permission (options.js:1)
    at HTMLElement.i (options.js:1)