Skip to content

Commit

Permalink
chore(version): 2.1.2 - Fix manifest permission for Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
JalilArfaoui committed May 20, 2019
1 parent fd02740 commit b68b0f2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion manifest/chromium.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ module.exports = {
content_security_policy: csp({
directives: {
'default-src': ['https://reco2bulle.lmem.net'],
'connect-src': ['https://sentry.io/api'],
'connect-src': [
'https://staging-notices.lmem.net',
'https://sentry.io/api/*'
],
'script-src': [
"'self'",
'https://heapanalytics.com',
Expand Down
5 changes: 4 additions & 1 deletion manifest/staging.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ module.exports = {
content_security_policy: csp({
directives: {
'default-src': ['https://staging-notices.lmem.net'],
'connect-src': ['https://sentry.io/api'],
'connect-src': [
'https://staging-notices.lmem.net',
'https://sentry.io/api/*'
],
'script-src': [
"'self'",
"'unsafe-eval'",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lmem-recommendations",
"version": "2.1.0",
"version": "2.1.2",
"description": "LMEM Recommendations web extensions using React+Redux.",
"engines": {
"node": ">=8"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/heap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const loadHeap = (appId: string): Promise<Heap> => {

return new Promise(resolve => {
(function heapLoader() {
if (heap && heap.loaded && heap.userId) resolve(heap);
if (win.heap && win.heap.loaded && win.heap.userId) resolve(win.heap);
else setTimeout(heapLoader, 100);
})();
});
Expand Down

0 comments on commit b68b0f2

Please sign in to comment.