We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b488e6 commit 6c4b170Copy full SHA for 6c4b170
1 file changed
surreal.js
@@ -209,7 +209,7 @@ let $ = { // Convenience for internals.
209
// Puts Surreal functions except for "restricted" in global scope.
210
globalsAdd() {
211
console.log(`Surreal: Adding convenience globals to window.`)
212
- let restricted = ['$', 'sugar']
+ let restricted = ['$', 'sugar', 'plugins']
213
for (const [key, value] of Object.entries(this)) {
214
if (!restricted.includes(key)) window[key] != 'undefined' ? window[key] = value : console.warn(`Surreal: "${key}()" already exists on window. Skipping to prevent overwrite.`)
215
window.document[key] = value
0 commit comments