From 7cfc183c0abe29d6604f88568e6b94db04198ea9 Mon Sep 17 00:00:00 2001 From: Cris Stringfellow <22254235+crislin2046@users.noreply.github.com> Date: Wed, 15 Dec 2021 22:18:30 +0800 Subject: [PATCH] "The order matters" --- archivist.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/archivist.js b/archivist.js index 654a9e6..0759747 100644 --- a/archivist.js +++ b/archivist.js @@ -114,11 +114,11 @@ async function collect({chrome_port:port, mode} = {}) { throw new TypeError(`Must specify mode`); } - on("Target.targetInfoChanged", indexURL); - on("Target.targetInfoChanged", updateTargetInfo); - on("Target.targetInfoChanged", reloadIfNotLive); - on("Target.targetInfoChanged", attachToTarget); on("Target.targetInfoChanged", displayTargetInfo); + on("Target.targetInfoChanged", attachToTarget); + on("Target.targetInfoChanged", reloadIfNotLive); + on("Target.targetInfoChanged", updateTargetInfo); + on("Target.targetInfoChanged", indexURL); on("Target.attachedToTarget", installForSession); on("Fetch.requestPaused", cacheRequest); on("Runtime.consoleAPICalled", handleMessage);