Skip to content

Commit

Permalink
migrate replay app
Browse files Browse the repository at this point in the history
  • Loading branch information
SuaYoo committed Nov 28, 2023
1 parent d92c2c2 commit af9bba2
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions src/electron-replay-app.js → src/electron-replay-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ const URL_RX = /([^/]+)\/([\d]+)(?:\w\w_)?\/(.*)$/;

// ============================================================================
class ElectronReplayApp {
/**
* @type {string}
*/
pluginPath = "";

appPath = app.getAppPath();
Expand All @@ -54,26 +51,17 @@ class ElectronReplayApp {

profileName = "";

proxyColl = null;
proxyColl: string | null = null;

proxyTS = null;
proxyTS: string | null = null;

/**
* @type {BrowserWindow | null}
*/
mainWindow = null;
mainWindow: BrowserWindow | null = null;

/**
* @type {string | null}
*/
openNextFile = null;
openNextFile: string | null = null;

screenSize = { width: 1024, height: 768 };

/**
* @type {string | null}
*/
origUA = null;
origUA: string | null = null;

constructor({ staticPath = "./", profileName = "" } = {}) {
this.staticContentPath = staticPath;
Expand Down

0 comments on commit af9bba2

Please sign in to comment.