Skip to content

Commit

Permalink
Fix #41
Browse files Browse the repository at this point in the history
  • Loading branch information
martin31821 committed Oct 24, 2019
1 parent 64632cd commit a18466f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion projects/ngx-golden-layout/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion projects/ngx-golden-layout/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-golden-layout",
"version": "0.0.29",
"version": "0.0.30",
"license": "BSD-3-Clause",
"author": {
"name": "Martin Koppehel",
Expand Down
12 changes: 8 additions & 4 deletions projects/ngx-golden-layout/src/lib/multiwindow-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,14 @@ export function MultiWindowService<T>() {
}
return rootWindow.__services.get(constr.name);
}) as any;
///if (window === rootWindow) {
/// const metadata = (Reflect as any).getMetadata('design:paramtypes', constr);
/// (Reflect as any).metadata('design:paramtypes', metadata)(newConstructor);
///}
try {
if (window === rootWindow) {
const metadata = (Reflect as any).getMetadata('design:paramtypes', constr);
(Reflect as any).metadata('design:paramtypes', metadata)(newConstructor);
}
} catch {
// obviously, we're in ivy.
}
return newConstructor as Constructor<T>;
};
}

0 comments on commit a18466f

Please sign in to comment.