Skip to content

Commit

Permalink
Try to bypass cache when using Download Profile Now button. Fix #886.
Browse files Browse the repository at this point in the history
  • Loading branch information
FelisCatus committed Oct 25, 2016
1 parent fcb063a commit 7b0a9e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions omega-target-chromium-extension/omega_target_web.coffee
Expand Up @@ -81,8 +81,8 @@ angular.module('omegaTarget', []).factory 'omegaTarget', ($q) ->
callBackground('patch', patch).then omegaTarget.refresh
resetOptions: (opt) ->
callBackground('reset', opt).then omegaTarget.refresh
updateProfile: (name) ->
callBackground('updateProfile', name).then((results) ->
updateProfile: (name, opt_bypass_cache) ->
callBackground('updateProfile', name, opt_bypass_cache).then((results) ->
for own key, value of results
results[key] = decodeError(value)
results
Expand Down
2 changes: 1 addition & 1 deletion omega-web/src/omega/controllers/master.coffee
Expand Up @@ -223,7 +223,7 @@ angular.module('omega').controller 'MasterCtrl', ($scope, $rootScope, $window,
if not profile.builtin
$scope.updatingProfile[profile.name] = true

omegaTarget.updateProfile(name).then((results) ->
omegaTarget.updateProfile(name, 'bypass_cache').then((results) ->
success = 0
error = 0
for own profileName, result of results
Expand Down

0 comments on commit 7b0a9e9

Please sign in to comment.