()
| 3161 | } |
| 3162 | |
| 3163 | var doit = function() { |
| 3164 | storeScript(script.name, script); |
| 3165 | if (!oldscript || o.clean) storeScriptStorage(script.name, { ts: (new Date()).getTime() }); |
| 3166 | if (!o.cb) { |
| 3167 | notifyOptionsTab(); |
| 3168 | } |
| 3169 | |
| 3170 | if (false) { // add user option |
| 3171 | var disableNative = function(item) { |
| 3172 | if (!item) return; |
| 3173 | console.log("bg: disable extension " + item.name); |
| 3174 | extensions.setEnabled(item, false); |
| 3175 | } |
| 3176 | extensions.getUserscriptByName(script.name, disableNative); |
| 3177 | } |
| 3178 | }; |
| 3179 | |
| 3180 | if (!o.ask || |
| 3181 | (allowSilent && Config.values.notification_silentScriptUpdate)) { |
no test coverage detected
searching dependent graphs…