mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-02-08 13:38:14 -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
|
callBackground('patch', patch).then omegaTarget.refresh
|
||||||
resetOptions: (opt) ->
|
resetOptions: (opt) ->
|
||||||
callBackground('reset', opt).then omegaTarget.refresh
|
callBackground('reset', opt).then omegaTarget.refresh
|
||||||
updateProfile: (name) ->
|
updateProfile: (name, opt_bypass_cache) ->
|
||||||
callBackground('updateProfile', name).then((results) ->
|
callBackground('updateProfile', name, opt_bypass_cache).then((results) ->
|
||||||
for own key, value of results
|
for own key, value of results
|
||||||
results[key] = decodeError(value)
|
results[key] = decodeError(value)
|
||||||
results
|
results
|
||||||
|
@ -223,7 +223,7 @@ angular.module('omega').controller 'MasterCtrl', ($scope, $rootScope, $window,
|
|||||||
if not profile.builtin
|
if not profile.builtin
|
||||||
$scope.updatingProfile[profile.name] = true
|
$scope.updatingProfile[profile.name] = true
|
||||||
|
|
||||||
omegaTarget.updateProfile(name).then((results) ->
|
omegaTarget.updateProfile(name, 'bypass_cache').then((results) ->
|
||||||
success = 0
|
success = 0
|
||||||
error = 0
|
error = 0
|
||||||
for own profileName, result of results
|
for own profileName, result of results
|
||||||
|
Loading…
Reference in New Issue
Block a user