Skip to content

Commit

Permalink
cleanup: Minor adjustments to imports
Browse files Browse the repository at this point in the history
Add LLC name to license.
  • Loading branch information
bekriebel committed Aug 27, 2021
1 parent 94ee05a commit 16cadd7
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LiveKit AVClient Copyright 2021 Brint E. Kriebel (“Licensor”)
LiveKit AVClient Copyright 2021 Brint E. Kriebel / bekit, LLC (“Licensor”)

Hippocratic License Version Number: 2.1.

Expand Down
2 changes: 1 addition & 1 deletion src/avclient-livekit.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require("./utils/hooks");
import "./utils/hooks";
import LiveKitAVClient from "./LiveKitAVClient";

CONFIG.WebRTC.clientClass = LiveKitAVClient;
4 changes: 0 additions & 4 deletions src/utils/logging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ export const warn: (...args: unknown[]) => void = console.warn.bind(
LOG_PREFIX
);

// export function warn(...args) {
// console.warn(LOG_PREFIX, ...args);
// }

/**
* Display error messages on the console
* @param {...*} args Arguments to console.error
Expand Down
13 changes: 6 additions & 7 deletions src/utils/registerModuleSettings.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { MODULE_NAME } from "./constants";
import * as helpers from "./helpers";
import { getGame } from "./helpers";
import { delayReload, getGame, registerModuleSetting } from "./helpers";
import * as log from "./logging";

export default function registerModuleSettings(): void {
helpers.registerModuleSetting({
registerModuleSetting({
name: "resetRoom",
scope: "world",
config: true,
Expand All @@ -24,25 +23,25 @@ export default function registerModuleSettings(): void {
});

// Register debug logging setting
helpers.registerModuleSetting({
registerModuleSetting({
name: "debug",
scope: "world",
config: true,
default: false,
type: Boolean,
onChange: () => helpers.delayReload(),
onChange: () => delayReload(),
});

// Set the initial debug level
log.setDebug(getGame().settings.get(MODULE_NAME, "debug") === true);

// Register livekit trace logging setting
helpers.registerModuleSetting({
registerModuleSetting({
name: "livekitTrace",
scope: "world",
config: getGame().settings.get(MODULE_NAME, "debug") === true,
default: false,
type: Boolean,
onChange: () => helpers.delayReload(),
onChange: () => delayReload(),
});
}
2 changes: 2 additions & 0 deletions webpack.common.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable no-undef */
const CopyPlugin = require("copy-webpack-plugin");
const path = require("path");
const webpack = require("webpack");
Expand Down
2 changes: 2 additions & 0 deletions webpack.dev.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable no-undef */
const { merge } = require("webpack-merge");
const common = require("./webpack.common.js");

Expand Down
2 changes: 2 additions & 0 deletions webpack.prod.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable no-undef */
const { merge } = require("webpack-merge");
const common = require("./webpack.common.js");
const TerserPlugin = require("terser-webpack-plugin");
Expand Down

0 comments on commit 16cadd7

Please sign in to comment.