Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
14.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
quanglam2807 committed Oct 1, 2020
1 parent e850213 commit 1fbef72
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ description: Translatium lets you translate words, phrases and images between ov
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://translatiumapp.com" # the base hostname & protocol for your site, e.g. http://example.com

translatium_version: 14.0.1
translatium_version: 14.0.2

pagination:
enabled: true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Translatium",
"description": "Translate Any Languages like a Pro",
"version": "14.0.1",
"version": "14.0.2",
"main": "public/electron.js",
"repository": "https://github.com/translatium/translatium",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/take-screenshot-to-blob-async.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const takeScreenshotToBlob = () => {
const { desktopCapturer, remote } = window.require('electron');
const permissions = remote.require('node-mac-permissions');

// use node-mac-permissions
// as Electron API doesn't support askForScreenCaptureAccess()
// shell.openExternal('x-apple.systempreferences...') is not sufficient as it doesn't ensure
// the app is added to app list in system pref
if (window.process.platform === 'darwin') {
const permissions = remote.require('node-mac-permissions');
const authStatus = permissions.getAuthStatus('screen');
if (authStatus === 'denied' || authStatus === 'restricted') {
permissions.askForScreenCaptureAccess();
Expand Down

0 comments on commit 1fbef72

Please sign in to comment.