Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

Commit

Permalink
Added Frame Manager (fixes #20)
Browse files Browse the repository at this point in the history
  • Loading branch information
uuf6429 committed Apr 28, 2017
1 parent a0ffaa6 commit b23412d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
25 changes: 25 additions & 0 deletions src/Server/FrameManager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
'use strict';

module.exports = (function () {
/**
* @typedef {Object} Frame
* @property {String} id
* @property {String} name
* @property {String} frameId
* @property {Electron.WebContents} reference
*/

const manager = {},
/** @type {Frame[]} */
frames = [];

/**
* Removes frame.
* @param {String} id
*/
manager.unregisterById = function (id) {
// TODO
};

return manager;
})();
3 changes: 2 additions & 1 deletion src/Server/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ const Electron = require('electron'),
DNode = require('dnode'),
QueryString = require('querystring'),
Logger = require('./Logger.js'),
ResponseManager = require('./ResponseManager.js');
ResponseManager = require('./ResponseManager.js'),
FrameManager = require('./FrameManager.js');

const showWindow = process.argv[3] === 'show';
Logger.LogLevel = process.argv[4] || Logger.DEBUG;
Expand Down

0 comments on commit b23412d

Please sign in to comment.