Skip to content

Commit

Permalink
fix: prevent cb mode console spam
Browse files Browse the repository at this point in the history
  • Loading branch information
dsrkafuu committed Dec 8, 2021
1 parent a30b9b1 commit 6b6b118
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ffxiv-overlay-api",
"version": "4.1.1",
"version": "4.1.2",
"description": "Build your own modern FFXIV overlay with npm & TypeScript support.",
"keywords": [
"ffxiv",
Expand Down
4 changes: 2 additions & 2 deletions src/overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ class OverlayAPI {

// check mode
if (this._wsURL) {
logInfo('initializing api in websocket mode...');
this._initWS();
} else {
logInfo('initializing api in callback mode...');
this._initCB();
}
// `common.js` _L97 binding
Expand Down Expand Up @@ -144,7 +146,6 @@ class OverlayAPI {
* init api in websocket mode
*/
private _initWS() {
logInfo('initializing api in websocket mode...');
// legacy ws url support
let url = this._wsURL;
if (!url.includes('/ws')) {
Expand Down Expand Up @@ -188,7 +189,6 @@ class OverlayAPI {
* init api in callback mode
*/
private _initCB() {
logInfo('initializing api in callback mode...');
// if CEF environment not ready
if (!window.OverlayPluginApi || !window.OverlayPluginApi.ready) {
setTimeout(() => {
Expand Down

0 comments on commit 6b6b118

Please sign in to comment.