From 88a8fda566da1e5bd7c8c83e9ac50b0519274c61 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Fri, 14 Feb 2020 23:16:01 -0500 Subject: [PATCH] Moved window.SB creation for security reasons. --- src/background.ts | 3 +++ src/config.ts | 5 +---- src/options.ts | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/background.ts b/src/background.ts index 89516287..304902ad 100644 --- a/src/background.ts +++ b/src/background.ts @@ -1,5 +1,8 @@ import * as Types from "./types"; + import Config from "./config"; +// Make the config public for debugging purposes +( window).SB = Config; import Utils from "./utils"; var utils = new Utils({ diff --git a/src/config.ts b/src/config.ts index 555aadcd..7fa11084 100644 --- a/src/config.ts +++ b/src/config.ts @@ -263,7 +263,4 @@ function addDefaults() { // Sync config setupConfig(); -export default Config; - -// Make the config public for debugging purposes -( window).SB = Config; \ No newline at end of file +export default Config; \ No newline at end of file diff --git a/src/options.ts b/src/options.ts index 1836c6c3..0836090c 100644 --- a/src/options.ts +++ b/src/options.ts @@ -1,4 +1,6 @@ import Config from "./config"; +// Make the config public for debugging purposes +( window).SB = Config; import Utils from "./utils"; var utils = new Utils();