export itself

This commit is contained in:
pypy
2020-11-07 20:27:40 +09:00
parent f4d054ea49
commit c2b9345a59
6 changed files with 5 additions and 5 deletions

View File

@@ -13,8 +13,6 @@ import locale from 'element-ui/lib/locale/lang/en';
import sharedRepository from './repository/shared.js';
import configRepository from './repository/config.js';
window.sharedRepository = sharedRepository;
window.configRepository = configRepository;
import webApiService from './service/webapi.js';
(async function () {

View File

@@ -60,6 +60,7 @@ async function syncLoop() {
}
var self = new ConfigRepository();
window.configRepository = self;
export {
self as default,

View File

@@ -97,6 +97,7 @@ function transformKey(key) {
}
var self = new SharedRepository();
window.sharedRepository = self;
export {
self as default,

View File

@@ -21,6 +21,7 @@ class SQLiteService {
}
var self = new SQLiteService();
window.sqliteService = self;
export {
self as default,

View File

@@ -8,6 +8,7 @@ class WebApiService {
execute(options) {
return new Promise((resolve, reject) => {
WebApi.Execute(options, (err, response) => {
console.log('WebApi', options, { err, response });
if (err !== null) {
reject(err);
return;
@@ -19,6 +20,7 @@ class WebApiService {
}
var self = new WebApiService();
window.webApiService = self;
export {
self as default,

View File

@@ -12,9 +12,6 @@ import locale from 'element-ui/lib/locale/lang/en';
import sharedRepository from './repository/shared.js';
import configRepository from './repository/config.js';
window.sharedRepository = sharedRepository;
window.configRepository = configRepository;
(async function () {
await CefSharp.BindObjectAsync(
'VRCX',