electron/lib/browser/api/session.js

18 lines
382 B
JavaScript
Raw Normal View History

2020-03-20 13:28:31 -07:00
'use strict';
2020-03-20 13:28:31 -07:00
const { EventEmitter } = require('events');
const { app, deprecate } = require('electron');
2020-05-19 10:18:12 -07:00
const { fromPartition } = process.electronBinding('session');
2016-06-01 10:42:24 +09:00
2016-08-01 19:35:51 +09:00
// Public API.
Object.defineProperties(exports, {
defaultSession: {
enumerable: true,
2020-03-20 13:28:31 -07:00
get () { return fromPartition(''); }
},
fromPartition: {
enumerable: true,
value: fromPartition
2016-01-11 18:40:23 -08:00
}
2020-03-20 13:28:31 -07:00
});