mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 15:08:12 -05:00
Try to bypass cache when using Download Profile Now button. Fix #886.
This commit is contained in:
parent
fcb063a464
commit
7b0a9e9333
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user