Update createWindow.js

This commit is contained in:
سالم محمد شماخ 2021-03-06 11:46:09 +03:00 committed by GitHub
parent f8bec8eeb4
commit a893c3f4a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,10 @@ module.exports = (store, __exports) => {
path = require('path'), path = require('path'),
helpers = require('../../pkg/helpers.js'); helpers = require('../../pkg/helpers.js');
__exports.getIndexUrl = require(`${helpers
.getNotionResources()
.replace(/\\/g, '/')}/app/helpers/urlHelpers.js`).getIndexUrl;
__exports.createWindow = function (relativeUrl, focused_window) { __exports.createWindow = function (relativeUrl, focused_window) {
if (!relativeUrl) relativeUrl = ''; if (!relativeUrl) relativeUrl = '';
const window_state = require(`${helpers const window_state = require(`${helpers