This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:cloud_firestore/cloud_firestore.dart'; | |
import 'package:coup/firebase/auth.dart'; | |
import 'package:firebase_core/firebase_core.dart'; | |
import 'package:firebase_database/firebase_database.dart'; | |
class UserPresence { | |
static final _app = FirebaseApp.instance; | |
static final FirebaseDatabase _db = FirebaseDatabase( | |
app: _app, | |
databaseURL: 'https://coup-dc26b.firebaseio.com/', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get File | |
const getFileBtn = document.getElementById("fs-get") | |
getFileBtn.onclick = async () => { | |
const [handle] = await window.showOpenFilePicker(); | |
const file = await handle.getFile(); | |
console.log(file) | |
} | |
OlderNewer