Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 7, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/entry.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path')
require('./report.js')
require('./lib/report/node.js')

// First parameter is the app folder (containing package.json)
// Second parameter is the entry point of the app, i.e. app/index.js
Expand Down
2 changes: 1 addition & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { autoUpdater } from 'electron-updater'
import { join as pathJoin } from 'path'
import pjson from '../package.json'
import Settings from 'electron-settings'
import './report'
import './lib/report/node'
import rootDir from 'app-root-dir'
import setupTrayIcon from './setup-tray-icon'

Expand Down
2 changes: 1 addition & 1 deletion app/report.js → app/lib/report/node.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const pjson = require('../package.json')
const pjson = require('../../../package.json')
const { init } = require('@sentry/electron')

init({
Expand Down
10 changes: 10 additions & 0 deletions app/lib/report/preload.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const pjson = require('../../../package.json')
const { init } = require('@sentry/electron')

document.addEventListener('DOMContentLoaded', () => {
init({
dsn: 'https://[email protected]/1189440',
release: `${pjson.version}/IPFS-${pjson.ipfsVersion}`,
environment: `${pjson.env}`
})
})
2 changes: 1 addition & 1 deletion app/singleInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Import/require this file to force the app to have one single instance
*/

import './report'
import './lib/report/node'
import { app } from 'electron'

const shouldQuit = app.makeSingleInstance(() => {})
Expand Down
2 changes: 1 addition & 1 deletion app/windows/Details/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports.create = function createDetailsWindow (app, hash) {

show: false,
webPreferences: {
preload: path.join(__dirname, '../../report.js')
preload: path.join(__dirname, '../../lib/report/preload.js')
}
})

Expand Down
2 changes: 1 addition & 1 deletion app/windows/Import/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports.create = function createImportModal (app) {

show: false,
webPreferences: {
preload: path.join(__dirname, '../../report.js')
preload: path.join(__dirname, '../../lib/report/preload.js')
}
})

Expand Down
2 changes: 1 addition & 1 deletion app/windows/Loading/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports.create = function createResolveIPNSWindow (app) {

show: false,
webPreferences: {
preload: path.join(__dirname, '../../report.js')
preload: path.join(__dirname, '../../lib/report/preload.js')
}
})

Expand Down
2 changes: 1 addition & 1 deletion app/windows/PublishToIPNS/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports.create = function createResolveIPNSWindow (app) {

show: false,
webPreferences: {
preload: path.join(__dirname, '../../report.js')
preload: path.join(__dirname, '../../lib/report/preload.js')
}
})

Expand Down
2 changes: 1 addition & 1 deletion app/windows/ResolveIPNS/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports.create = function createResolveIPNSWindow (app) {

show: false,
webPreferences: {
preload: path.join(__dirname, '../../report.js')
preload: path.join(__dirname, '../../lib/report/preload.js')
}
})

Expand Down
2 changes: 1 addition & 1 deletion app/windows/Settings/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports.create = function createSettingsModal (app) {

show: false,
webPreferences: {
preload: path.join(__dirname, '../../report.js')
preload: path.join(__dirname, '../../lib/report/preload.js')
}
})

Expand Down
2 changes: 1 addition & 1 deletion app/windows/Storage/Components/StorageElement.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class StorageElement extends React.Component {

_handleContextMenu (event) {
event.preventDefault()
this.menu.popup()
this.menu.popup({})
}

_handleCheckboxOnClick (element, proxy, event) {
Expand Down
2 changes: 1 addition & 1 deletion app/windows/Storage/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports.create = function createStorageWindow (app) {

show: false,
webPreferences: {
preload: path.join(__dirname, '../../report.js')
preload: path.join(__dirname, '../../lib/report/preload.js')
}
})

Expand Down
2 changes: 1 addition & 1 deletion app/windows/Welcome/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports.create = function createResolveIPNSWindow (app) {

show: false,
webPreferences: {
preload: path.join(__dirname, '../../report.js')
preload: path.join(__dirname, '../../lib/report/preload.js')
}
})

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.22.0",
"electron-builder": "^20.8.1",
"electron-prebuilt-compile": "1.8.3",
"electron-prebuilt-compile": "^2.0.2",
"electron-react-devtools": "^0.5.3",
"eslint": "^4.19.0",
"eslint-config-standard": "^11.0.0",
Expand Down
Loading