Skip to content

Commit

Permalink
updated graphiql and react to the latest stable versions
Browse files Browse the repository at this point in the history
  • Loading branch information
adrtivv committed Oct 1, 2024
1 parent 26e3691 commit a98ba95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,17 +157,17 @@ function render () {

function importDependencies () {
const link = document.createElement('link')
link.href = 'https://unpkg.com/graphiql@2.0.9/graphiql.min.css'
link.href = 'https://unpkg.com/graphiql/graphiql.min.css'
link.type = 'text/css'
link.rel = 'stylesheet'
link.media = 'screen,print'
link.crossOrigin = 'anonymous'
document.getElementsByTagName('head')[0].appendChild(link)

return importer.urls([
'https://unpkg.com/react@18.2.0/umd/react.production.min.js',
'https://unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js',
'https://unpkg.com/graphiql@2.0.9/graphiql.min.js'
'https://unpkg.com/react@18/umd/react.production.min.js',
'https://unpkg.com/react-dom@18/umd/react-dom.production.min.js',
'https://unpkg.com/graphiql/graphiql.min.js'
]).then(function () {
const pluginUrls = window.GRAPHIQL_PLUGIN_LIST
.map(plugin => window[`GRAPIHQL_PLUGIN_${plugin.toUpperCase()}`].umdUrl)
Expand Down
10 changes: 5 additions & 5 deletions static/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

self.addEventListener('install', function (e) {
e.waitUntil(
caches.open('graphiql-v2.0.9').then(function (cache) {
caches.open('graphiql').then(function (cache) {
return cache.addAll([
'./main.js',
'https://unpkg.com/graphiql@2.0.9/graphiql.css',
'https://unpkg.com/react@18.2.0/umd/react.production.min.js',
'https://unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js',
'https://unpkg.com/graphiql@2.0.9/graphiql.min.js'
'https://unpkg.com/graphiql/graphiql.css',
'https://unpkg.com/react@18/umd/react.production.min.js',
'https://unpkg.com/react-dom@18/umd/react-dom.production.min.js',
'https://unpkg.com/graphiql/graphiql.min.js'
])
})
)
Expand Down

0 comments on commit a98ba95

Please sign in to comment.