Skip to content

Commit

Permalink
Add polyfill for intersection observer
Browse files Browse the repository at this point in the history
  • Loading branch information
lautis committed Apr 5, 2018
1 parent d62c6ea commit 0d892d5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@
"scripts": {
"build": "npm run refined-github && npm run copy",
"clean": "rm -r Refined\\ Github.safariextension;mkdir Refined\\ Github.safariextension",
"copy:intersection-observer": "cp node_modules/intersection-observer/intersection-observer.js Refined\\ Github.safariextension/",
"copy:sources": "cp src/* Refined\\ Github.safariextension/",
"copy": "npm run copy:intersection-observer && npm run copy:sources",
"refined-github": "npm run refined-github:install && npm run refined-github:build && npm run refined-github:copy",
"refined-github:install": "cd refined-github && npm install",
"refined-github:build": "cd refined-github && npm run build",
"refined-github:copy": "cp refined-github/distribution/* Refined\\ Github.safariextension",
"copy": "cp src/* Refined\\ Github.safariextension/"
"refined-github:copy": "cp refined-github/distribution/* Refined\\ Github.safariextension"
},
"author": "Ville Lautanala <[email protected]>",
"license": "ISC"
"license": "ISC",
"dependencies": {
"intersection-observer": "^0.5.0"
}
}
2 changes: 1 addition & 1 deletion src/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<key>Start</key>
<array>
<string>chrome.js</string>
<string>intersection-observer.polyfill.js</string>
<string>browser-polyfill.min.js</string>
<string>intersection-observer.js</string>
<string>content.js</string>
</array>
</dict>
Expand Down

0 comments on commit 0d892d5

Please sign in to comment.