Skip to content

Commit

Permalink
refactor: ♻️ replace deprecated call (#1229)
Browse files Browse the repository at this point in the history
Co-authored-by: dylankelly <dylan.kelly@dpc.vic.gov.au>
  • Loading branch information
waitingallday and dylankelly committed Aug 16, 2022
1 parent 6d747f5 commit e723847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ripple-nuxt-tide/lib/templates/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default ({ app, req, store , route }, inject) => {
commit('setHost', req.headers.host)

// Set protocol
const protocol = process.server ? (req.connection.encrypted ? 'https:' : 'http:') : window.location.protocol
const protocol = process.server ? (req.socket.encrypted ? 'https:' : 'http:') : window.location.protocol
commit('setProtocol', protocol)

// Load site module store.
Expand Down

0 comments on commit e723847

Please sign in to comment.