Skip to content

Commit

Permalink
fix: ssr writes console message to generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
SunriseFox committed Sep 10, 2019
1 parent 64cf400 commit 2dd8028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Object.assign(globalThis, {
type Service = Record<string, (...args: any[]) => Promise<any>>
function register<T extends Service>(service: T, name: keyof Services, mock?: Partial<T>) {
if (OnlyRunInContext(['content', 'options', 'debugging', 'background'], false)) {
console.log(`Service ${name} registered in ${GetContext()}`)
GetContext() !== 'debugging' && console.log(`Service ${name} registered in ${GetContext()}`)
Object.assign(Services, {
[name]: AsyncCall(Object.assign({}, service), {
key: name,
Expand Down

0 comments on commit 2dd8028

Please sign in to comment.