Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class SlottableRequestDirective extends AsyncDirective {
{ signal }
);

if (window.__swc.DEBUG) {
if (window.__swc?.DEBUG && window.__swc?.warn) {
window.__swc.warn(
undefined,
`⚠️ WARNING ⚠️ : The Overlay Trigger Directive is experimental and there is no guarantees behind its usage in an application!! Its API and presence within the library could be changed at anytime. See "sp-overlay" or "Overlay.open()" for a stable API for overlaying content on your application.`,
Expand Down
2 changes: 1 addition & 1 deletion 1st-gen/packages/overlay/src/slottable-request-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class SlottableRequestEvent extends Event {
this.name = name;
this.data = data;
this.slotName = key !== undefined ? `${name}.${key}` : name;
if (window.__swc.DEBUG) {
if (window.__swc?.DEBUG && window.__swc?.warn) {
window.__swc.warn(
undefined,
`⚠️ WARNING ⚠️ : \`slottable-request\` events are experimental and there is no guarantees behind usage of them in an application!! Their shape and presence within the library could be changed at anytime.
Expand Down
Loading