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

Commit

Permalink
Fix r.read is not a function at maskIconAsync (#1530)
Browse files Browse the repository at this point in the history
  • Loading branch information
quanglam2807 authored Sep 30, 2021
1 parent ca377e1 commit f16a11a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main-src/libs/mask-icon-async.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
const path = require('path');
const Jimp = require('jimp');
const Jimp = process.env.NODE_ENV === 'production' ? require('jimp').default : require('jimp');

// apply icon template to make icon follow Big Sur style
const maskIconAsync = async (iconPath, iconDestPath, unplated = false) => {
Expand Down

0 comments on commit f16a11a

Please sign in to comment.