From fbc27096d9ca3c581ce78fd772fca0336e613aa1 Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Sun, 21 Sep 2014 22:01:06 +0400 Subject: [PATCH] Don't change title unless request is complete --- background.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/background.js b/background.js index 1479897..d653f4c 100644 --- a/background.js +++ b/background.js @@ -16,6 +16,11 @@ function updateTab(info) { return; } + // Don't change title unless request is complete + if (info.status !== "complete") { + return; + } + // Ignore chrome pages if (!info.url.indexOf('http') === 0) { return;