From 2217772a72070cb32df6eea6130872fb774719a8 Mon Sep 17 00:00:00 2001 From: huhai463127310 Date: Tue, 11 Feb 2014 19:18:18 +0800 Subject: [PATCH] Update LAB.src.js to support chrome-extension --- LAB.src.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LAB.src.js b/LAB.src.js index 99807cd..e503d3d 100644 --- a/LAB.src.js +++ b/LAB.src.js @@ -16,7 +16,7 @@ // stateless variables used across all $LAB instances root_page = /^[^?#]*\//.exec(location.href)[0], - root_domain = /^\w+\:\/\/\/?[^\/]+/.exec(root_page)[0], + root_domain = /^[\w|\-]+\:\/\/\/?[^\/]+/.exec(root_page)[0], append_to = document.head || document.getElementsByTagName("head"), // inferences... ick, but still necessary @@ -511,4 +511,4 @@ } })("addEventListener","DOMContentLoaded"); -})(this); \ No newline at end of file +})(this);