抽取cookie清理逻辑为新的第六步
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
(function attachBackgroundStep6(root, factory) {
|
||||
root.MultiPageBackgroundStep6 = factory();
|
||||
})(typeof self !== 'undefined' ? self : globalThis, function createBackgroundStep6Module() {
|
||||
function createStep6Executor(deps = {}) {
|
||||
const {
|
||||
completeStepFromBackground,
|
||||
runPreStep6CookieCleanup,
|
||||
} = deps;
|
||||
|
||||
async function executeStep6() {
|
||||
await runPreStep6CookieCleanup();
|
||||
await completeStepFromBackground(6);
|
||||
}
|
||||
|
||||
return { executeStep6 };
|
||||
}
|
||||
|
||||
return { createStep6Executor };
|
||||
});
|
||||
Reference in New Issue
Block a user