Skip to content

Commit

Permalink
BREAKING CHANGE: support Safari 12 on macOS Mojave
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcos Cáceres committed Nov 12, 2018
1 parent 6df4a5f commit 913c8c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -25,7 +25,7 @@ const SafariTechPreviewBrowser = function (baseBrowserDecorator) {
throw err;
}
const content = data.toString().replace('%URL%', url);
const staticHtmlPath = self._tempDir + '/redirect.html';
const staticHtmlPath = path.join(process.env.HOME, 'Library/Containers/com.apple.SafariTechnologyPreview/Data/redirect.html');
try {
yield fs.writeFile(staticHtmlPath, content);
} catch (err) {
Expand All @@ -47,4 +47,4 @@ SafariTechPreviewBrowser.$inject = ['baseBrowserDecorator'];

module.exports = {
'launcher:SafariTechPreview': ['type', SafariTechPreviewBrowser]
};
};

0 comments on commit 913c8c1

Please sign in to comment.