Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fireperf cloud-functions-start #793

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions web-start/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
<!-- App Styling -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&amp;lang=en">
<link rel="stylesheet" href="styles/main.css">

<!-- TODO: Enable First Input Delay polyfill library. -->
<!-- <script type="text/javascript">!function(n,e){var t,o,i,c=[],f={passive:!0,capture:!0},r=new Date,a="pointerup",u="pointercancel";function p(n,c){t||(t=c,o=n,i=new Date,w(e),s())}function s(){o>=0&&o<i-r&&(c.forEach(function(n){n(o,t)}),c=[])}function l(t){if(t.cancelable){var o=(t.timeStamp>1e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?function(t,o){function i(){p(t,o),r()}function c(){r()}function r(){e(a,i,f),e(u,c,f)}n(a,i,f),n(u,c,f)}(o,t):p(o,t)}}function w(n){["click","mousedown","keydown","touchstart","pointerdown"].forEach(function(e){n(e,l,f)})}w(n),self.perfMetrics=self.perfMetrics||{},self.perfMetrics.onFirstInputDelay=function(n){c.push(n),s()}}(addEventListener,removeEventListener);</script> -->

</head>
<body>
<div class="demo-layout mdl-layout mdl-js-layout mdl-layout--fixed-header">
Expand Down Expand Up @@ -115,6 +119,8 @@ <h3><i class="material-icons">chat_bubble_outline</i> Friendly Chat</h3>
<script src="/__/firebase/6.0.2/firebase-storage.js"></script>
<script src="/__/firebase/6.0.2/firebase-messaging.js"></script>
<script src="/__/firebase/6.0.2/firebase-firestore.js"></script>
<!-- TODO: Import the Firebase Performance Monitoring library here. -->

<script src="/__/firebase/init.js"></script>

<script src="scripts/main.js"></script>
Expand Down
2 changes: 2 additions & 0 deletions web-start/public/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,5 +292,7 @@ var firestore = firebase.firestore();
var settings = {timestampsInSnapshots: true};
firestore.settings(settings);

// TODO: Enable Firebase Performance Monitoring.

// We load currently existing chat messages and listen to new ones.
loadMessages();