Skip to content

Commit

Permalink
Remove all polyfill.io
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jun 27, 2024
1 parent d40ab18 commit df465cb
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 26 deletions.
5 changes: 0 additions & 5 deletions api/dist/apihelp/apihelp.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
}
</style>
<link href="github.css" rel="stylesheet" type="text/css" media="screen">
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,default-3.6,Array.prototype.includes,Object.entries,Object.values" crossorigin="anonymous"></script>
<script src="rainbow-custom.min.js"></script>
<script src="../api.js"></script>
<link href="../api.css" rel="stylesheet" type="text/css">
Expand All @@ -54,10 +53,6 @@ <h1>Simple API Help</h1>
<h2>Basis</h2>
<p>To use the API you should add the following HTML:</p>
<pre><code data-language="html">
&lt;script
src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,default-3.6,Array.prototype.includes,Object.entries,Object.values"
crossorigin="anonymous"&gt;
&lt;/script&gt;
&lt;link href="https://geomapfish-demo-2-6.camptocamp.com/api.css" rel="stylesheet"&gt;
&lt;script src="https://geomapfish-demo-2-6.camptocamp.com/api.js?version=2"&gt;&lt;/script&gt;
&lt;script&gt;
Expand Down
1 change: 0 additions & 1 deletion buildtools/check-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ function loaded(page, browser) {
const url = request.url();
if (
!url.startsWith('https://www.camptocamp.com/') &&
!url.startsWith('https://cdn.polyfill.io/') &&
!url.startsWith('https://maps.googleapis.com/')
) {
console.log(`Request failed on: ${url}`);
Expand Down
1 change: 0 additions & 1 deletion contribs/gmf/apps/desktop/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@
ngeo-resizemap-state="mainCtrl.queryGridActive">
</gmf-displayquerygrid>
</footer>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,default-3.6,Array.prototype.includes,Object.entries,Object.values" crossorigin="anonymous"></script>
<script src="../../../dist/vendor.js?${htmlWebpackPlugin.options.vars.version}" crossorigin="anonymous"></script>
<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>" crossorigin="anonymous"></script>
Expand Down
1 change: 0 additions & 1 deletion contribs/gmf/apps/desktop_alt/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,6 @@
</gmf-lidarprofile>
</div>
</footer>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,default-3.6,Array.prototype.includes,Object.entries,Object.values" crossorigin="anonymous"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3&key=AIzaSyA3NVIy-HOYT0a0CkChA6nFwqEFqHYWBVk"></script>
<script src="../../../dist/vendor.js?${htmlWebpackPlugin.options.vars.version}" crossorigin="anonymous"></script>
<% for (var js in htmlWebpackPlugin.files.js) { %>
Expand Down
1 change: 0 additions & 1 deletion contribs/gmf/apps/iframe_api/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
<gmf-share ng-if="mainCtrl.modalShareShown"></gmf-share>
</ngeo-modal>
</main>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,default-3.6,Array.prototype.includes,Object.entries,Object.values" crossorigin="anonymous"></script>
<script src="../../../dist/vendor.js?${htmlWebpackPlugin.options.vars.version}" crossorigin="anonymous"></script>
<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>" crossorigin="anonymous"></script>
Expand Down
1 change: 0 additions & 1 deletion contribs/gmf/apps/mobile/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@
gmf-mobile-nav-back="mainCtrl.gmfUser.username !== null">
</gmf-authentication>
</nav>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,default-3.6,Array.prototype.includes,Object.entries,Object.values" crossorigin="anonymous"></script>
<script src="../../../dist/vendor.js?${htmlWebpackPlugin.options.vars.version}" crossorigin="anonymous"></script>
<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>" crossorigin="anonymous"></script>
Expand Down
1 change: 0 additions & 1 deletion contribs/gmf/apps/mobile_alt/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@
gmf-mobile-nav-back="mainCtrl.gmfUser.username !== null">
</gmf-authentication>
</nav>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,default-3.6,Array.prototype.includes,Object.entries,Object.values" crossorigin="anonymous"></script>
<script src="../../../dist/vendor.js?${htmlWebpackPlugin.options.vars.version}" crossorigin="anonymous"></script>
<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>" crossorigin="anonymous"></script>
Expand Down
1 change: 0 additions & 1 deletion contribs/gmf/apps/oeedit/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@
ngeo-resizemap-state="profileChartActive">
</gmf-profile>
</footer>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,default-3.6,Array.prototype.includes,Object.entries,Object.values" crossorigin="anonymous"></script>
<script src="../../../dist/vendor.js?${htmlWebpackPlugin.options.vars.version}" crossorigin="anonymous"></script>
<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>" crossorigin="anonymous"></script>
Expand Down
14 changes: 0 additions & 14 deletions contribs/gmf/src/controllers/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,6 @@ import angular from 'angular';
* @param {angular.IModule} module The module
*/
function bootstrap(module) {
// Hack to make the bootstrap type check working with polyfill.io
const oldObjectToString = Object.prototype.toString;
if (!oldObjectToString.toString().includes('[native code]')) {
Object.prototype.toString = function () {
if (this === null) {
return '[object Null]';
}
if (this === undefined) {
return '[object Undefined]';
}
return oldObjectToString.call(this);
};
}

const interface_ = $('meta[name=interface]')[0].getAttribute('content');
const dynamicUrl_ = $('meta[name=dynamicUrl]')[0].getAttribute('content');
const search = document.location ? document.location.search || '' : '';
Expand Down

0 comments on commit df465cb

Please sign in to comment.