How to use the nw.gui.setAlwaysOnTop function in nw

To help you get started, we’ve selected a few nw examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MyEtherWallet / mewify / src / scripts-native / 01-nativeFuncs.js View on Github external
const os = require('os');
var nwGui = require('nw.gui');
nwGui.setAlwaysOnTop = function(isOnTop) {
    nwGui.Window.get().setAlwaysOnTop(isOnTop);;
}
var fileIO = {};
fileIO.fs = require('fs');
fileIO.mkdirp = require('mkdirp');
fileIO.path = require('path');
fileIO.readFile = function(path, callback) {
    this.fs.readFile(path, 'utf8', function(err, data) {
        if (err) {
            Events.Error(err);
            callback({ error: true, msg: err, data: '' });
        } else
            callback({ error: false, msg: '', data: data });
    });
}
fileIO.readAllFiles = function(dirname, onFileContent, onError) {
github MyEtherWallet / mewify / app / js / mewify-native.js View on Github external
const os = require('os');
var nwGui = require('nw.gui');
nwGui.setAlwaysOnTop = function(isOnTop) {
    nwGui.Window.get().setAlwaysOnTop(isOnTop);;
}
var fileIO = {};
fileIO.fs = require('fs');
fileIO.mkdirp = require('mkdirp');
fileIO.path = require('path');
fileIO.readFile = function(path, callback) {
    this.fs.readFile(path, 'utf8', function(err, data) {
        if (err) {
            Events.Error(err);
            callback({ error: true, msg: err, data: '' });
        } else
            callback({ error: false, msg: '', data: data });
    });
}
fileIO.readAllFiles = function(dirname, onFileContent, onError) {