Skip to content

Commit 6c4b170

Browse files
authored
Fix #52
1 parent 2b488e6 commit 6c4b170

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

surreal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ let $ = { // Convenience for internals.
209209
// Puts Surreal functions except for "restricted" in global scope.
210210
globalsAdd() {
211211
console.log(`Surreal: Adding convenience globals to window.`)
212-
let restricted = ['$', 'sugar']
212+
let restricted = ['$', 'sugar', 'plugins']
213213
for (const [key, value] of Object.entries(this)) {
214214
if (!restricted.includes(key)) window[key] != 'undefined' ? window[key] = value : console.warn(`Surreal: "${key}()" already exists on window. Skipping to prevent overwrite.`)
215215
window.document[key] = value

0 commit comments

Comments
 (0)