Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

144
Views
Almacenamiento de base de datos indexada entre dominios

Soy nuevo en indexedDB y mi objetivo es crear una extensión de Chrome que realice un seguimiento de todas las páginas SSO y sus redireccionamientos. Mi idea es almacenar cada enlace de inicio de sesión y sus respectivos redireccionamientos en un árbol; sin embargo, indexedDB crea una nueva base de datos para cada enlace que visito, por lo que tengo problemas para crear el árbol. ¿Hay alguna forma de evitar esto?

'''

 // Record variables to be used for indexedDB let request = window.indexedDB.open("MyTestDatabase", 2), db, tx, store, index; // triggered when a database of a bigger version number than the existing stored database is loaded request.onupgradeneeded = function (e) { let db = request.result, store = db.createObjectStore("URL", { autoIncrement: true }), index = store.createIndex("link no.", "URL", { unique: false }); }; // triggered if the database cannot load request.onerror = function (e) { console.log("The database 'linkStorage' could not be opened"); }; /* triggered if it does load - open a transaction, define the object store ("URL") - creates an index for data retrieval - append the current link to indexedDB, console.log it, and print the index */ request.onsuccess = function (e) { db = request.result; (tx = db.transaction("URL", "readwrite")), (store = tx.objectStore("URL")), store.index("link no."); db.onerror = function (e) { console.log("ERROR could not open db" + e.target.errorCode); }; var link = window.location.href; store.put(link); var countRequest = store.count(); countRequest.onsuccess = function () { var count = countRequest.result; var lastLink = store.get(count); lastLink.onsuccess = function () { console.log("Index = " + count); console.log("Current link = " + lastLink.result); }; }; tx.oncomplete = function () { db.close(); }; };

'''

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!