question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Polyfill 3.17.0 service update - Electron detection not working properly

See original GitHub issue

Hello,

I’ve moved this into a separate issue from my initial comment here.

At some point yesterday, my electron app started having issues with Polyfill.io due to it loading the Element polyfill, as I have my unknown policy set to polyfill. While it had worked fine until yesterday, it suddenly started detecting electron as an unknown/unsupported browser. The exact comment at the top is:

/* Polyfill service v3.17.0
 * For detailed credits and licence information see https://github.com/financial-times/polyfill-service.
 * 
 * UA detected: electron/1.4.0 (unknown/unsupported; using policy `unknown=polyfill`)
 * Features requested: Array.prototype.find,Array.prototype.findIndex,Array.prototype.includes,Date.now,String.prototype.endsWith,String.prototype.includes,String.prototype.startsWith,console.error,console.info,fetch,performance.now
 * 
 * - Object.defineProperty, License: CC0 (required by "Array.prototype.find", "Array.prototype.findIndex", "Array.isArray", "Promise", "fetch", "Event", "XMLHttpRequest")
 * - Array.prototype.find, License: CC0
 * - Array.prototype.findIndex, License: CC0
 * - Array.prototype.includes, License: CC0
 * - Date.now, License: CC0 (required by "performance.now")
 * - String.prototype.endsWith, License: CC0
 * - String.prototype.includes, License: CC0
 * - String.prototype.startsWith, License: CC0
 * - Window, License: CC0 (required by "console.error", "console.info", "console", "console.log", "Event", "Promise", "fetch", "XMLHttpRequest")
 * - console, License: CC0 (required by "console.error", "console.info", "console.log")
 * - console.log, License: CC0 (required by "console.error", "console.info")
 * - console.error, License: CC0
 * - console.info, License: CC0
 * - Array.prototype.forEach, License: CC0 (required by "fetch")
 * - Object.getOwnPropertyNames, License: CC0 (required by "fetch")
 * - setImmediate, License: CC0 (required by "Promise", "fetch")
 * - Array.isArray, License: CC0 (required by "Promise", "fetch")
 * - Document, License: CC0 (required by "Event", "Promise", "fetch", "XMLHttpRequest", "Element")
 * - Element, License: CC0 (required by "Event", "Promise", "fetch", "XMLHttpRequest")
 * - Event, License: CC0 (required by "Promise", "fetch", "XMLHttpRequest")
 * - Promise, License: MIT (required by "fetch")
 * - XMLHttpRequest, License: CC0 (required by "fetch")
 * - fetch, License: MIT
 * - performance.now, License: CC0 */

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
lepturecommented, Mar 17, 2017

What’s the User-Agent string?

1reaction
triblondoncommented, Mar 27, 2017

See #1147

Read more comments on GitHub >

github_iconTop Results From Across the Web

core-js-pure: Versions | Openbase
Added some fixes and workarounds of FF30- typed arrays bug that does not properly convert objects to numbers; Added sideEffects field to core-js-pure ......
Read more >
Babel issue running npm run dev after upgrade to Mix
From a new l58 app, I can run npm run dev without any issues. Since the files are the same I don't know...
Read more >
src/webview/package-lock.json · main · GitLab.org / gitlab-vscode ...
Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x ... Some versions have...
Read more >
Auto Update - electron-builder
Do not call setFeedURL. electron-builder automatically creates app-update.yml file for you on build in the resources (this file is internal, you don't need ......
Read more >
Poly Clariti Solution Offer of Open Source
machine-readable source code for the libraries listed in this document, as well as the executable object code of the Polycom work with which...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found