Skip to content

Commit

Permalink
Remove fetch polyfill and other misc small fixes (forem#629)
Browse files Browse the repository at this point in the history
* Remove fetch polyfill and other misc small fixes

* Remove fetch polyfill and other misc small fixes
  • Loading branch information
benhalpern authored Jul 27, 2018
1 parent ce965bc commit 749d61a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ gem "envied", "~> 0.9"
gem "fastly", "~> 1.13"
gem "fastly-rails", "~> 0.8"
gem "feedjira", "~> 2.1"
gem "fetch-rails", "~> 1.0"
gem "figaro", "~> 1.1"
gem "flipflop", "~> 2.3"
gem "fog", "~> 1.41"
Expand Down
3 changes: 0 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,6 @@ GEM
faraday_middleware (>= 0.9)
loofah (>= 2.0)
sax-machine (>= 1.0)
fetch-rails (1.0.0)
rails (>= 4.1.0)
ffi (1.9.25)
figaro (1.1.1)
thor (~> 0.14)
Expand Down Expand Up @@ -959,7 +957,6 @@ DEPENDENCIES
fastly (~> 1.13)
fastly-rails (~> 0.8)
feedjira (~> 2.1)
fetch-rails (~> 1.0)
figaro (~> 1.1)
fix-db-schema-conflicts!
flipflop (~> 2.3)
Expand Down
1 change: 0 additions & 1 deletion app/assets/javascripts/base.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
//= require airbrake-js-client
//= require serviceworker-companion
//= require algolia/v3/algoliasearch.min
//= require fetch

var instantClick
, InstantClick = instantClick = function(document, location, $userAgent) {
Expand Down
4 changes: 2 additions & 2 deletions app/models/reaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ def update_reactable
if reactable_type == "Article"
reactable.async_score_calc
reactable.index!
cache_buster.bust "/reactions/logged_out_reaction_counts?article_id=#{reactable_id}"
cache_buster.bust "/reactions?article_id=#{reactable_id}"
elsif reactable_type == "Comment"
reactable.save
cache_buster.bust "/reactions/logged_out_reaction_counts?commentable_id=#{reactable.commentable_id}&commentable_type=#{reactable.commentable_type}"
cache_buster.bust "/reactions?commentable_id=#{reactable.commentable_id}&commentable_type=#{reactable.commentable_type}"
end
cache_buster.bust user.path
occasionally_sync_reaction_counts
Expand Down
4 changes: 2 additions & 2 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
}
</style>

<%= javascript_pack_tag "manifest" %>
<%= javascript_pack_tag "vendor" %>
<%= javascript_pack_tag "manifest", defer: true %>
<%= javascript_pack_tag "vendor", defer: true %>

<%= javascript_pack_tag 'Search', defer: true %>
<% if core_pages? %>
Expand Down

0 comments on commit 749d61a

Please sign in to comment.